diff --git a/code/cgame/cg_draw.c b/code/cgame/cg_draw.c index 4b6df017..95666822 100644 --- a/code/cgame/cg_draw.c +++ b/code/cgame/cg_draw.c @@ -1197,10 +1197,15 @@ static float CG_DrawPowerups( float y ) { if ( !ps->powerups[ i ] ) { continue; } - t = ps->powerups[ i ] - cg.time; - // ZOID--don't draw if the power up has unlimited time (999 seconds) + + // ZOID--don't draw if the power up has unlimited time // This is true of the CTF flags - if ( t < 0 || t > 999000) { + if ( ps->powerups[ i ] == INT_MAX ) { + continue; + } + + t = ps->powerups[ i ] - cg.time; + if ( t <= 0 ) { continue; } diff --git a/code/cgame/cg_newdraw.c b/code/cgame/cg_newdraw.c index a2749b2a..680bd6c1 100644 --- a/code/cgame/cg_newdraw.c +++ b/code/cgame/cg_newdraw.c @@ -832,10 +832,15 @@ static void CG_DrawAreaPowerUp(rectDef_t *rect, int align, float special, float if ( !ps->powerups[ i ] ) { continue; } - t = ps->powerups[ i ] - cg.time; - // ZOID--don't draw if the power up has unlimited time (999 seconds) + + // ZOID--don't draw if the power up has unlimited time // This is true of the CTF flags - if ( t <= 0 || t >= 999000) { + if ( ps->powerups[ i ] == INT_MAX ) { + continue; + } + + t = ps->powerups[ i ] - cg.time; + if ( t <= 0 ) { continue; }