Skip to content

Commit 97dd48f

Browse files
authored
Bugfix some engines rounding instead of truncating level times in csqc_scoreboard.csqc
1 parent 4c3d21b commit 97dd48f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

keepsrc/csqc/csqc_scoreboard.csqc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ void(vector virtmin, vector virtsize) Hud_Intermission = {
120120
} else {
121121
drawpic(pos+[0,56], "gfx/inter_denizens.lmp", [160,184],[1,1,1],1,0);
122122
}
123-
Hud_DrawIntermissionNumber(pos+[160, 64], sprintf("%3.0f:", intermission_time/60));
124-
Hud_DrawIntermissionNumber(pos+[248, 64], sprintf("%02.0f", intermission_time%60));
123+
Hud_DrawIntermissionNumber(pos+[160, 64], sprintf("%3.0f:", floor(intermission_time/60)));
124+
Hud_DrawIntermissionNumber(pos+[248, 64], sprintf("%02.0f", floor(intermission_time%60)));
125125
Hud_DrawIntermissionNumber(pos+[160, 96], sprintf("%3.0f/", getstatf(STAT_FOUNDSECRETS)));
126126
Hud_DrawIntermissionNumber(pos+[248, 96], sprintf("%.0f", getstatf(STAT_TOTALSECRETS)));
127127
Hud_DrawIntermissionNumber(pos+[160,160], sprintf("%3.0f/",getstatf(STAT_KILLEDMONSTERS)));

0 commit comments

Comments
 (0)