diff --git a/src/p_map.cpp b/src/p_map.cpp index cab74417b..6788ccfb2 100644 --- a/src/p_map.cpp +++ b/src/p_map.cpp @@ -1401,15 +1401,20 @@ bool P_CheckPosition (AActor *thing, fixed_t x, fixed_t y, FCheckPosition &tm) //bool onthing = (thingdropoffz != tmdropoffz); tm.floorz = tm.dropoffz; + bool good = true; + while ((ld = it.Next())) { - if (!PIT_CheckLine(ld, box, tm)) - return false; + good &= PIT_CheckLine(ld, box, tm); } - - if (tm.ceilingz - tm.floorz < thing->height) + if (!good) + { return false; - + } + if (tm.ceilingz - tm.floorz < thing->height) + { + return false; + } if (tm.touchmidtex) { tm.dropoffz = tm.floorz;