report (total and) leveltime upon loading savegame (#1344)

This commit is contained in:
Fabian Greffrath 2023-12-18 14:20:38 +01:00 committed by GitHub
parent ae4fee7de3
commit e17b7c1506
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2332,7 +2332,13 @@ static void G_DoLoadGame(void)
if (demorecording) // So this can only possibly be a -recordfrom command.
G_BeginRecording();// Start the -recordfrom, since the game was loaded.
I_Printf(VB_INFO, "G_DoLoadGame: Slot %02d", 10*savepage+savegameslot);
I_Printf(VB_INFO, "G_DoLoadGame: Slot %02d, Time ", 10 * savepage + savegameslot);
if (totalleveltimes)
I_Printf(VB_INFO, "(%d:%02d) ", ((totalleveltimes + leveltime) / TICRATE) / 60,
((totalleveltimes + leveltime) / TICRATE) % 60);
I_Printf(VB_INFO, "%d:%05.2f", leveltime / TICRATE / 60,
(float)(leveltime % (60 * TICRATE)) / TICRATE);
M_SetQuickSaveSlot(savegameslot);
}