Fix logging of game load times in crash and desync logs

This commit is contained in:
Jonathan G Rennison
2024-06-02 16:30:00 +01:00
parent 05915b2129
commit 9aca7ed2b4
3 changed files with 5 additions and 4 deletions

View File

@@ -108,7 +108,7 @@ void ClearSpecialEventsLog()
_special_event_log.Reset();
}
void LogGameLoadDateTimes(char *buffer, const char *last)
char *LogGameLoadDateTimes(char *buffer, const char *last)
{
if (_game_load_time != 0) {
buffer += seprintf(buffer, last, "Game loaded at: %i-%02i-%02i (%i, %i), (" OTTD_PRINTF64 " state ticks ago), ",
@@ -117,4 +117,5 @@ void LogGameLoadDateTimes(char *buffer, const char *last)
buffer += UTCTime::Format(buffer, last, _game_load_time, "%Y-%m-%d %H:%M:%S");
buffer += seprintf(buffer, last, "\n");
}
return buffer;
}