Skip to content

Commit

Permalink
CGAME: Hide medals and accuracy when in LPS "wait" mode
Browse files Browse the repository at this point in the history
This should finally fix #332
  • Loading branch information
kai-li-wop committed Nov 15, 2024
1 parent 25b4de6 commit 58ad30d
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions code/cgame/cg_scoreboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -634,13 +634,15 @@ qboolean CG_DrawOldScoreboard(void) {
if (score != NULL) {
const clientInfo_t *ci = &cgs.clientinfo[score->client];
if (ci->team != TEAM_SPECTATOR) {
char buf[32];
CG_DrawMedals(62.0f, (float)SB_TOP + 216.0f, score);

// draw accuracy rate
CG_DrawPic(342.0f, (float)SB_TOP + 216.0f, 96.0f, 24.0f, cgs.media.scoreboardAccuracy);
Com_sprintf(buf, sizeof(buf), "%i%%", score->accuracy);
CG_DrawStringExt(438, SB_TOP + 220, buf, colorWhite, qfalse, qtrue, FONT_SMALL, 0);
if (!(cgs.gametype == GT_LPS && cg.snap->ps.stats[STAT_LIVESLEFT] <= 0)) {
char buf[32];
CG_DrawMedals(62.0f, (float)SB_TOP + 216.0f, score);

// draw accuracy rate
CG_DrawPic(342.0f, (float)SB_TOP + 216.0f, 96.0f, 24.0f, cgs.media.scoreboardAccuracy);
Com_sprintf(buf, sizeof(buf), "%i%%", score->accuracy);
CG_DrawStringExt(438, SB_TOP + 220, buf, colorWhite, qfalse, qtrue, FONT_SMALL, 0);
}
}
}

Expand Down

0 comments on commit 58ad30d

Please sign in to comment.