Skip to content

Commit

Permalink
Another fix to total time shown in console when > 1 hour
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Dec 27, 2024
1 parent 2bdf69e commit 3d4deed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wi_stuff.c
Original file line number Diff line number Diff line change
Expand Up @@ -1107,7 +1107,7 @@ static void WI_InitStats(void)

if (hours)
C_TabbedOutput(tabs, "Total time\t" MONOSPACED("%i") ":" MONOSPACED("%02i") ":" MONOSPACED("%02i"),
hours, totaltime / TICRATE / 60, totaltime / TICRATE % 60);
hours, totaltime % 3600 / TICRATE / 60, totaltime % 3600 / TICRATE % 60);
else
C_TabbedOutput(tabs, "Total time\t" MONOSPACED("%02i") ":" MONOSPACED("%02i"),
totaltime / TICRATE / 60, totaltime / TICRATE % 60);
Expand Down

0 comments on commit 3d4deed

Please sign in to comment.