From b8f8daf1c10ffbf8b0b47578bbae30157e99c15a Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sat, 20 Feb 2016 15:52:19 +0100 Subject: [PATCH] - fixed:In P_ChangeSector, floorOrCeil==2 means that only 3D midtextures moved. This means that * no 3D floor movement can take place * no portal changes can occur. --- src/p_map.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/p_map.cpp b/src/p_map.cpp index b77d6c55a..85cd11084 100644 --- a/src/p_map.cpp +++ b/src/p_map.cpp @@ -5495,7 +5495,7 @@ bool P_ChangeSector(sector_t *sector, int crunch, int amt, int floorOrCeil, bool // Also process all sectors that have 3D floors transferred from the // changed sector. - if (sector->e->XFloor.attached.Size()) + if (sector->e->XFloor.attached.Size() && floorOrCeil != 2) { unsigned i; sector_t* sec; @@ -5601,7 +5601,7 @@ bool P_ChangeSector(sector_t *sector, int crunch, int amt, int floorOrCeil, bool } } while (n); // repeat from scratch until all things left are marked valid - sector->CheckPortalPlane(floorOrCeil); // check for portal obstructions after everything is done. + if (floorOrCeil != 2) sector->CheckPortalPlane(floorOrCeil); // check for portal obstructions after everything is done. if (!cpos.nofit && !isreset /* && sector->MoreFlags & (SECF_UNDERWATERMASK)*/) {