- 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

View file

@ -539,7 +539,7 @@ bool P_Move (AActor *actor)
!((actor->flags & MF_NOGRAVITY) || (actor->flags6 & MF6_CANJUMP)) !((actor->flags & MF_NOGRAVITY) || (actor->flags6 & MF6_CANJUMP))
&& actor->Z() > actor->floorz && !(actor->flags2 & MF2_ONMOBJ)) && 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(); fixed_t savedz = actor->Z();
actor->SetZ(actor->floorz); actor->SetZ(actor->floorz);