- removed several unused setter functions for level data structures and fixed some incorrect uses.
This commit is contained in:
parent
9a07f81269
commit
9b5a4b6d43
8 changed files with 25 additions and 100 deletions
|
|
@ -102,7 +102,7 @@ static bool MoveCeiling(sector_t *sector, int crush, double move)
|
|||
|
||||
// Don't let the ceiling go below the floor
|
||||
if (!sector->ceilingplane.isSlope() && !sector->floorplane.isSlope() &&
|
||||
sector->GetPlaneTexZ(sector_t::floor) > sector->GetPlaneTexZ(sector_t::ceiling)) return false;
|
||||
sector->GetPlaneTexZF(sector_t::floor) > sector->GetPlaneTexZF(sector_t::ceiling)) return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
@ -116,7 +116,7 @@ static bool MoveFloor(sector_t *sector, int crush, double move)
|
|||
|
||||
// Don't let the floor go above the ceiling
|
||||
if (!sector->ceilingplane.isSlope() && !sector->floorplane.isSlope() &&
|
||||
sector->GetPlaneTexZ(sector_t::floor) > sector->GetPlaneTexZ(sector_t::ceiling)) return false;
|
||||
sector->GetPlaneTexZF(sector_t::floor) > sector->GetPlaneTexZF(sector_t::ceiling)) return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue