From 220255e6a420b223550b929fd2295a43d53da7e5 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 11 May 2016 11:56:03 +0200 Subject: [PATCH] - fixed P_CheckMove's dropoff check and removed some unneeded code. --- src/p_map.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/p_map.cpp b/src/p_map.cpp index e0ee1eaec..923799668 100644 --- a/src/p_map.cpp +++ b/src/p_map.cpp @@ -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))) { - const DVector3 oldpos = thing->Pos(); - thing->SetOrigin(pos.X, pos.Y, newz, true); - bool hcheck = (newz - thing->dropoffz > thing->MaxDropOffHeight); - thing->SetOrigin(oldpos, true); - if (hcheck) + if (newz - tm.dropoffz > thing->MaxDropOffHeight) { return false; }