mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-19 07:01:09 +00:00
- 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:
parent
f893f12ed7
commit
53dfac5327
1 changed files with 2 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue