Skip to content

Commit

Permalink
Make the ship's log bigger
Browse files Browse the repository at this point in the history
This should probably be a constant or more smart, but it bothered me now and this would fix the bother
  • Loading branch information
csibbitt authored Mar 11, 2023
1 parent e157502 commit eb9ee8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/spaceObjects/playerSpaceship.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1117,9 +1117,9 @@ void PlayerSpaceship::setRepairCrewCount(int amount)

void PlayerSpaceship::addToShipLog(string message, glm::u8vec4 color)
{
// Cap the ship's log size to 100 entries. If it exceeds that limit,
// Cap the ship's log size to 10000 entries. If it exceeds that limit,
// start erasing entries from the beginning.
if (ships_log.size() > 100)
if (ships_log.size() > 10000)
ships_log.erase(ships_log.begin());

// Timestamp a log entry, color it, and add it to the end of the log.
Expand Down

0 comments on commit eb9ee8c

Please sign in to comment.