mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
- un-revert P_CheckMove fix.
This commit is contained in:
parent
769521b2e1
commit
852ed6cd04
1 changed files with 1 additions and 5 deletions
|
@ -2535,11 +2535,7 @@ bool P_CheckMove(AActor *thing, const DVector2 &pos, int flags)
|
||||||
}
|
}
|
||||||
else if ((flags & PCM_DROPOFF) && !(thing->flags & (MF_FLOAT|MF_DROPOFF)))
|
else if ((flags & PCM_DROPOFF) && !(thing->flags & (MF_FLOAT|MF_DROPOFF)))
|
||||||
{
|
{
|
||||||
const DVector3 oldpos = thing->Pos();
|
if (newz - tm.dropoffz > thing->MaxDropOffHeight)
|
||||||
thing->SetOrigin(pos.X, pos.Y, newz, true);
|
|
||||||
bool hcheck = (newz - thing->dropoffz > thing->MaxDropOffHeight);
|
|
||||||
thing->SetOrigin(oldpos, true);
|
|
||||||
if (hcheck)
|
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue