- Duke: Fix bad sector variable check in floorspace().

* Originated from 1b3f551216.
* Was causing the player to die quite easily when coming out of the transporter at the start of E2L2.
This commit is contained in:
Mitchell Richters 2022-12-14 18:14:06 +11:00
parent f893f12ed7
commit 53dfac5327

View file

@ -64,7 +64,8 @@ bool ceilingspace(sectortype* sectp)
bool floorspace(sectortype* sectp)
{
return (sectp && (sectp->floorstat & CSTAT_SECTOR_SKY) && sectp->floorpal == 0 && (tileflags(sectp->floorpicnum) & TFLAG_OUTERSPACE));
// Yes, ceilingpal in this check is correct...
return (sectp && (sectp->floorstat & CSTAT_SECTOR_SKY) && sectp->ceilingpal == 0 && (tileflags(sectp->floorpicnum) & TFLAG_OUTERSPACE));
}
//---------------------------------------------------------------------------