Skip to content

Commit

Permalink
GameStoryLogger: Generate final frame
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Jun 29, 2024
1 parent 962136a commit 406aa37
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gamehistorylogger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,9 @@ void GameStoryLogger::logGameOver()

gameEndRealTime = std::chrono::system_clock::now();

gameFrames.push_back(genCurrentFrame());
lastRecordedGameFrameTime = gameTime;

if (outputModes.anyEnabled())
{
bool hitTimeout = (game.gameTimeLimitMinutes > 0) ? (gameTime >= (game.gameTimeLimitMinutes * 60 * 1000)) : false;
Expand Down

0 comments on commit 406aa37

Please sign in to comment.