When about to hit a new floor, don't change the direction of the actor if STOPIFBLOCKED is up.

This commit is contained in:
MajorCooke 2016-02-09 23:16:15 -06:00
parent ebe6cef7cc
commit e73a737350

View file

@ -2533,7 +2533,8 @@ void A_DoChase (VMFrameStack *stack, AActor *actor, bool fastchase, FState *mele
actor->PrevY = oldY; actor->PrevY = oldY;
} }
} }
P_NewChaseDir(actor); if (!(flags & CHF_STOPIFBLOCKED))
P_NewChaseDir(actor);
} }
} }
else if (dontmove && actor->movecount > 0) actor->movecount--; else if (dontmove && actor->movecount > 0) actor->movecount--;