Skip to content

Commit

Permalink
Fused both proxy mine messages. More practical that way. (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonKnightOA authored Mar 13, 2024
1 parent 7de5170 commit 696d99d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions code/cgame/cg_draw.c
Original file line number Diff line number Diff line change
Expand Up @@ -3287,12 +3287,9 @@ static void CG_DrawProxWarning( void ) {

proxTick = 10 - ((cg.time - proxTime) / 1000);

if (proxTick > 0 && proxTick <= 5) {
Com_sprintf(s, sizeof(s), "INTERNAL COMBUSTION IN: %i", proxTick);
} else {
Com_sprintf(s, sizeof(s), "YOU HAVE BEEN MINED");
if (proxTick > 0) {
Com_sprintf(s, sizeof(s), "YOU HAVE BEEN MINED\rINTERNAL COMBUSTION IN: %i", proxTick);
}

w = CG_DrawStrlen( s ) * BIGCHAR_WIDTH;
CG_DrawBigStringColor( 320 - w / 2, 64 + BIGCHAR_HEIGHT, s, g_color_table[ColorIndex(COLOR_RED)] );
}
Expand Down

0 comments on commit 696d99d

Please sign in to comment.