commit
f5303ca090
2 changed files with 7 additions and 3 deletions
|
|
@ -207,6 +207,7 @@
|
||||||
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
<MultiProcessorCompilation>true</MultiProcessorCompilation>
|
||||||
<OmitFramePointers>true</OmitFramePointers>
|
<OmitFramePointers>true</OmitFramePointers>
|
||||||
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
|
||||||
|
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
<ResourceCompile>
|
<ResourceCompile>
|
||||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||||
|
|
@ -239,7 +240,7 @@
|
||||||
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
|
<IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
|
||||||
<ImageHasSafeExceptionHandlers>
|
<ImageHasSafeExceptionHandlers>
|
||||||
</ImageHasSafeExceptionHandlers>
|
</ImageHasSafeExceptionHandlers>
|
||||||
<LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration>
|
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
|
||||||
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
<FullProgramDatabaseFile>true</FullProgramDatabaseFile>
|
||||||
</Link>
|
</Link>
|
||||||
<PostBuildEvent>
|
<PostBuildEvent>
|
||||||
|
|
|
||||||
|
|
@ -340,10 +340,11 @@ void BotManager::AdjustQuota (bool isPlayerConnection, edict_t *ent)
|
||||||
if (yb_autovacate_smart_kick.GetBool ())
|
if (yb_autovacate_smart_kick.GetBool ())
|
||||||
AddPlayerToCheckTeamQueue (ent);
|
AddPlayerToCheckTeamQueue (ent);
|
||||||
else
|
else
|
||||||
|
{
|
||||||
RemoveRandom ();
|
RemoveRandom ();
|
||||||
|
|
||||||
m_balanceCount--;
|
m_balanceCount--;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else if (m_balanceCount <= 0)
|
else if (m_balanceCount <= 0)
|
||||||
{
|
{
|
||||||
AddRandom ();
|
AddRandom ();
|
||||||
|
|
@ -385,7 +386,9 @@ void BotManager::VerifyPlayersHasJoinedTeam (int &desiredCount)
|
||||||
if (cl.ent != m_trackedPlayers[it])
|
if (cl.ent != m_trackedPlayers[it])
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
m_balanceCount--;
|
||||||
desiredCount--;
|
desiredCount--;
|
||||||
|
|
||||||
m_trackedPlayers.RemoveAt (it);
|
m_trackedPlayers.RemoveAt (it);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue