mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- Fixed A_Wander calling --movecount too soon.
- Also added NORANDOMTURN flag accountability for A_Wander.
This commit is contained in:
parent
3399ed60e0
commit
4fcc9efea0
1 changed files with 1 additions and 4 deletions
|
@ -2111,10 +2111,7 @@ void A_Wander(AActor *self, int flags)
|
|||
}
|
||||
}
|
||||
|
||||
if (self->movecount >= 0)
|
||||
self->movecount--;
|
||||
|
||||
if ((!(flags & CHF_NORANDOMTURN) && self->movecount < 0) || !P_Move(self))
|
||||
if ((--self->movecount < 0 && !(flags & CHF_NORANDOMTURN)) || (!P_Move(self) && !(flags & CHF_STOPIFBLOCKED)))
|
||||
{
|
||||
P_RandomChaseDir(self);
|
||||
self->movecount += 5;
|
||||
|
|
Loading…
Reference in a new issue