diff options
Diffstat (limited to 'src/cgame')
-rw-r--r-- | src/cgame/cg_draw.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cgame/cg_draw.c b/src/cgame/cg_draw.c index 2c9c400..35c53cc 100644 --- a/src/cgame/cg_draw.c +++ b/src/cgame/cg_draw.c @@ -3165,7 +3165,7 @@ void CG_OwnerDraw( float x, float y, float w, float h, float text_x, CG_DrawPlayerBoosterBolt( &rect, backColor, foreColor, shader ); break; case CG_PLAYER_FBREATH: - CG_DrawPlayerFbreath( &rect, foreColor, shader ); + // CG_DrawPlayerFbreath( &rect, foreColor, shader ); break; case CG_PLAYER_PRICKLES: CG_DrawPlayerPrickles( &rect, foreColor, shader ); @@ -3610,17 +3610,17 @@ static void CG_DrawVote( team_t team ) int offset = 0; vec4_t white = { 1.0f, 1.0f, 1.0f, 1.0f }; char yeskey[ 32 ] = "", nokey[ 32 ] = ""; + static int lastVoteTime[ NUM_TEAMS ] = { 0 }; - if( !cgs.voteTime[ team ] ) return; - + sec = ( VOTE_TIME - ( cg.time - cgs.voteTime[ team ] ) ) / 1000; - //play dong sound - if(sec > 28 ) + if( cgs.voteTime[ team ] != lastVoteTime[ team ] ) { trap_S_StartLocalSound( cgs.media.iniVote, CHAN_LOCAL_SOUND ); + lastVoteTime[ team ] = cgs.voteTime[ team ]; } // if( cgs.voteModified[ team ] && (sec < 26 ) ) |