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
|
|
@ -1035,6 +1035,7 @@ Bot::Bot (edict_t *bot, int difficulty, int personality, int team, int member) {
|
|||
m_agressionLevel = m_baseAgressionLevel;
|
||||
m_fearLevel = m_baseFearLevel;
|
||||
m_nextEmotionUpdate = game.time () + 0.5f;
|
||||
m_healthValue = bot->v.health;
|
||||
|
||||
// just to be sure
|
||||
m_msgQueue.clear ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue