parent
fe572b3dc9
commit
74b97dadd5
13 changed files with 291 additions and 356 deletions
|
|
@ -250,7 +250,7 @@ void UpdateGlobalExperienceData (void)
|
|||
// this function called after each end of the round to update knowledge about most dangerous waypoints for each team.
|
||||
|
||||
// no waypoints, no experience used or waypoints edited or being edited?
|
||||
if (g_numWaypoints < 1 || waypoints.HasChanged ())
|
||||
if (g_numWaypoints < 1 || g_waypointsChanged)
|
||||
return; // no action
|
||||
|
||||
unsigned short maxDamage; // maximum damage
|
||||
|
|
@ -371,14 +371,10 @@ void RoundInit (void)
|
|||
// this is called at the start of each round
|
||||
|
||||
g_roundEnded = false;
|
||||
g_canSayBombPlanted = true;
|
||||
|
||||
// check team economics
|
||||
for (int team = TERRORIST; team < SPECTATOR; team++)
|
||||
{
|
||||
bots.CheckTeamEconomics (team);
|
||||
bots.SelectLeaderEachTeam (team, true);
|
||||
}
|
||||
bots.CheckTeamEconomics (TERRORIST);
|
||||
bots.CheckTeamEconomics (CT);
|
||||
|
||||
for (int i = 0; i < engine.MaxClients (); i++)
|
||||
{
|
||||
|
|
@ -394,6 +390,9 @@ void RoundInit (void)
|
|||
g_timeBombPlanted = 0.0f;
|
||||
g_timeNextBombUpdate = 0.0f;
|
||||
|
||||
g_leaderChoosen[CT] = false;
|
||||
g_leaderChoosen[TERRORIST] = false;
|
||||
|
||||
g_lastRadioTime[0] = 0.0f;
|
||||
g_lastRadioTime[1] = 0.0f;
|
||||
g_botsCanPause = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue