mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-19 12:06:07 +08:00
* Added support for building shaders in your mod
* Added nav mesh support * fixed many warnings and misc bugs * Fixed the create*projects scripts in mp * Added a bunch of stuff to .gitignore
This commit is contained in:
@ -346,6 +346,19 @@ bool CVoteController::CreateVote( int iEntIndex, const char *pszTypeString, cons
|
||||
Assert( nNumVoteOptions >= 2 );
|
||||
}
|
||||
|
||||
// Have the issue start working on it
|
||||
pCurrentIssue->OnVoteStarted();
|
||||
|
||||
// Now the vote handling and UI
|
||||
m_nPotentialVotes = pCurrentIssue->CountPotentialVoters();
|
||||
m_acceptingVotesTimer.Start( sv_vote_timer_duration.GetFloat() );
|
||||
|
||||
// Force the vote holder to agree with a Yes/No vote
|
||||
if ( m_bIsYesNoVote && !bDedicatedServer )
|
||||
{
|
||||
TryCastVote( iEntIndex, "Option1" );
|
||||
}
|
||||
|
||||
// Get the data out to the client
|
||||
CBroadcastRecipientFilter filter;
|
||||
filter.MakeReliable();
|
||||
@ -357,16 +370,6 @@ bool CVoteController::CreateVote( int iEntIndex, const char *pszTypeString, cons
|
||||
WRITE_BOOL( m_bIsYesNoVote );
|
||||
MessageEnd();
|
||||
|
||||
// Force the vote holder to agree with a Yes/No vote
|
||||
if ( m_bIsYesNoVote && !bDedicatedServer )
|
||||
{
|
||||
TryCastVote( iEntIndex, "Option1" );
|
||||
}
|
||||
|
||||
m_nPotentialVotes = pCurrentIssue->CountPotentialVoters();
|
||||
m_acceptingVotesTimer.Start( sv_vote_timer_duration.GetFloat() );
|
||||
pCurrentIssue->OnVoteStarted();
|
||||
|
||||
if ( !bDedicatedServer )
|
||||
{
|
||||
TrackVoteCaller( pVoteCaller );
|
||||
|
Reference in New Issue
Block a user