From fd2828b1fe614f62faa2be91a105f89d17608896 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 1 Feb 2016 10:00:19 +0100 Subject: [PATCH] - fixed typo in monster movement code. --- src/p_enemy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_enemy.cpp b/src/p_enemy.cpp index fa2804593..3c9cb1e17 100644 --- a/src/p_enemy.cpp +++ b/src/p_enemy.cpp @@ -539,7 +539,7 @@ bool P_Move (AActor *actor) !((actor->flags & MF_NOGRAVITY) || (actor->flags6 & MF6_CANJUMP)) && actor->Z() > actor->floorz && !(actor->flags2 & MF2_ONMOBJ)) { - if (actor->Y() <= actor->floorz + actor->MaxStepHeight) + if (actor->Z() <= actor->floorz + actor->MaxStepHeight) { fixed_t savedz = actor->Z(); actor->SetZ(actor->floorz);