From e73a7373508f2f9a2e45fcbaf16344046f637dde Mon Sep 17 00:00:00 2001 From: MajorCooke Date: Tue, 9 Feb 2016 23:16:15 -0600 Subject: [PATCH] When about to hit a new floor, don't change the direction of the actor if STOPIFBLOCKED is up. --- src/p_enemy.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/p_enemy.cpp b/src/p_enemy.cpp index 7b9dd2938..13f0a9e47 100644 --- a/src/p_enemy.cpp +++ b/src/p_enemy.cpp @@ -2533,7 +2533,8 @@ void A_DoChase (VMFrameStack *stack, AActor *actor, bool fastchase, FState *mele actor->PrevY = oldY; } } - P_NewChaseDir(actor); + if (!(flags & CHF_STOPIFBLOCKED)) + P_NewChaseDir(actor); } } else if (dontmove && actor->movecount > 0) actor->movecount--;