Skip to content

Commit

Permalink
Fix #266: "You Have Been Mined" message is now properly written. (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
NeonKnightOA authored Mar 23, 2024
1 parent 8075d6d commit 787dee7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions code/cgame/cg_draw.c
Original file line number Diff line number Diff line change
Expand Up @@ -3275,10 +3275,13 @@ static void CG_DrawProxWarning( void ) {
proxTick = 10 - ((cg.time - proxTime) / 1000);

if (proxTick > 0) {
Com_sprintf(s, sizeof(s), "YOU HAVE BEEN MINED\rINTERNAL COMBUSTION IN: %i", proxTick);
Com_sprintf(s, sizeof(s), "YOU HAVE BEEN MINED");
w = CG_DrawStrlen( s ) * BIGCHAR_WIDTH;
CG_DrawBigStringColor( 320 - w / 2, 64 + BIGCHAR_HEIGHT, s, g_color_table[ColorIndex(COLOR_RED)] );
Com_sprintf(s, sizeof(s), "INTERNAL COMBUSTION IN: %i", proxTick);
w = CG_DrawStrlen( s ) * BIGCHAR_WIDTH;
CG_DrawBigStringColor( 320 - w / 2, 64 + ((2 * BIGCHAR_HEIGHT) + 2), s, g_color_table[ColorIndex(COLOR_RED)] );
}
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 787dee7

Please sign in to comment.