diff --git a/src/p_enemy.cpp b/src/p_enemy.cpp index fa28045935..3c9cb1e177 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);