mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-17 09:41:21 +00:00
Fixed missing movecount decrement with blocked actors.
This commit is contained in:
parent
7798eadb8b
commit
f6b3b269a7
1 changed files with 1 additions and 1 deletions
|
@ -2509,7 +2509,7 @@ void A_DoChase (AActor *actor, bool fastchase, FState *meleestate, FState *missi
|
||||||
|
|
||||||
bool movecheck = P_Move(actor);
|
bool movecheck = P_Move(actor);
|
||||||
// chase towards player
|
// chase towards player
|
||||||
if (actor->movecount >= 0)
|
if (actor->movecount >= 0 || !movecheck)
|
||||||
actor->movecount--;
|
actor->movecount--;
|
||||||
if (!(flags & CHF_STOPIFBLOCKED))
|
if (!(flags & CHF_STOPIFBLOCKED))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue