fix: use clamped health value to avoid overflows.
crlib: do not shutdown wsa, it's cleaned upon server exit anyway.
This commit is contained in:
parent
3afd03c12c
commit
1263a1a439
11 changed files with 109 additions and 126 deletions
|
|
@ -333,7 +333,7 @@ public:
|
|||
template <typename ...Args> bool raiseLoadingError (bool isGraph, MemFile &file, const char *fmt, Args &&...args);
|
||||
|
||||
void saveOldFormat ();
|
||||
void initGraph ();
|
||||
void reset ();
|
||||
void frame ();
|
||||
void loadPractice ();
|
||||
void loadVisibility ();
|
||||
|
|
|
|||
|
|
@ -976,6 +976,7 @@ public:
|
|||
float m_timeLastFired; // time to last firing
|
||||
float m_difficultyChange; // time when auto-difficulty was last applied to this bot
|
||||
float m_kpdRatio; // kill per death ratio
|
||||
float m_healthValue; // clamped bot health
|
||||
|
||||
int m_basePing; // base ping for bot
|
||||
int m_numEnemiesLeft; // number of enemies alive left on map
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue