fix: missing world time when surprising enemies (ref #534)
This commit is contained in:
parent
7fa4cc5f70
commit
cbcb4a7ff0
2 changed files with 2 additions and 1 deletions
|
|
@ -389,6 +389,7 @@ bool Bot::lookupEnemies () {
|
|||
else {
|
||||
m_enemySurpriseTime = m_actualReactionTime;
|
||||
}
|
||||
m_enemySurpriseTime += game.time ();
|
||||
|
||||
// zero out reaction time
|
||||
m_actualReactionTime = 0.0f;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue