mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
- fixed typo in monster movement code.
This commit is contained in:
parent
52a6f40eff
commit
fd2828b1fe
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue