- Fixed: When P_ZMovement() handled MF_FLOAT, it reset the actor's z velocity to 0. I'd like to
know why that was in there, but I have no idea. It was like this for the entire life of the repository, so I can't find anything from that. And since MF_FLOAT is typically also applied to monsters with MF_NOGRAVITY, the z velocity should already be 0, so it's a change that makes little sense. SVN r3645 (trunk)
This commit is contained in:
parent
dc2010105b
commit
393b2177a9
2 changed files with 3 additions and 3 deletions
|
|
@ -2162,9 +2162,9 @@ void P_ZMovement (AActor *mo, fixed_t oldfloorz)
|
|||
dist = P_AproxDistance (mo->x - mo->target->x, mo->y - mo->target->y);
|
||||
delta = (mo->target->z + (mo->height>>1)) - mo->z;
|
||||
if (delta < 0 && dist < -(delta*3))
|
||||
mo->z -= mo->FloatSpeed, mo->velz = 0;
|
||||
mo->z -= mo->FloatSpeed;
|
||||
else if (delta > 0 && dist < (delta*3))
|
||||
mo->z += mo->FloatSpeed, mo->velz = 0;
|
||||
mo->z += mo->FloatSpeed;
|
||||
}
|
||||
}
|
||||
if (mo->player && (mo->flags & MF_NOGRAVITY) && (mo->z > mo->floorz))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue