fixed race-condition in bomb location detection
fixed visited goals are not cleared on round-start
This commit is contained in:
parent
4204f4e9f2
commit
aeb712c2b3
6 changed files with 45 additions and 25 deletions
|
|
@ -747,6 +747,7 @@ void RoundInit (void)
|
|||
g_radioSelect[i] = 0;
|
||||
}
|
||||
waypoints.SetBombPosition (true);
|
||||
waypoints.ClearVisitedGoals ();
|
||||
|
||||
g_bombSayString = false;
|
||||
g_timeBombPlanted = 0.0f;
|
||||
|
|
@ -1176,7 +1177,6 @@ void AddLogEntry (bool outputToConsole, int logLevel, const char *format, ...)
|
|||
printf ("%s", buffer);
|
||||
#endif
|
||||
|
||||
|
||||
#if defined (PLATFORM_WIN32)
|
||||
_exit (1);
|
||||
#else
|
||||
|
|
@ -1535,4 +1535,33 @@ int GetWeaponReturn (bool needString, const char *weaponAlias, int weaponIndex)
|
|||
return weaponTab[i].weaponIndex;
|
||||
}
|
||||
return -1; // no weapon was found return -1
|
||||
}
|
||||
}
|
||||
|
||||
class ISkyBotIf
|
||||
{
|
||||
public:
|
||||
virtual int GetVersion () = 0;
|
||||
};
|
||||
|
||||
class IEntity : public ISkyBotIf
|
||||
{
|
||||
public:
|
||||
};
|
||||
|
||||
class IPlayer : public IEntity
|
||||
{
|
||||
public:
|
||||
};
|
||||
|
||||
class IWeapon : public ISkyBotIf
|
||||
{
|
||||
public:
|
||||
virtual IPlayer *GetOwner () = 0;
|
||||
};
|
||||
|
||||
class IGame : public ISkyBotIf
|
||||
{
|
||||
public:
|
||||
virtual bool IsBombPlanted () = 0;
|
||||
virtual const Vector &GetBombPlantedOrigin () = 0;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue