- fixed typo in monster movement code.

This commit is contained in:
Christoph Oelckers 2016-02-01 10:00:19 +01:00
parent 52a6f40eff
commit fd2828b1fe
1 changed files with 1 additions and 1 deletions

View File

@ -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);