Skip to content

Commit

Permalink
Reset "already voted" flag on map change
Browse files Browse the repository at this point in the history
This fixes a bug where that flag stays enabled if there's a map change while a vote that you have voted on is still visible.
  • Loading branch information
TomyLobo committed Oct 8, 2016
1 parent 7f9e495 commit 23e8100
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mp/src/game/client/sdk/hud/da_hud_vote.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,7 @@ void CHudVote::LevelInit( void )
SetVoteActive( false );
m_flVoteResultCycleTime = -1;
m_flHideTime = -1;
m_bPlayerVoted = false;
m_flPostVotedHideTime = -1;
}

Expand Down

0 comments on commit 23e8100

Please sign in to comment.