From e17b7c15063e4645ec7a3cb9319ee952ffcc61e8 Mon Sep 17 00:00:00 2001 From: Fabian Greffrath Date: Mon, 18 Dec 2023 14:20:38 +0100 Subject: [PATCH] report (total and) leveltime upon loading savegame (#1344) --- src/g_game.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/g_game.c b/src/g_game.c index f46569a9..f3c8554f 100644 --- a/src/g_game.c +++ b/src/g_game.c @@ -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); }