mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-02 02:01:31 +00:00
- use inline access functions to read floorz/ceilingz.
This commit is contained in:
parent
0672572e63
commit
c84d75b8bf
77 changed files with 651 additions and 645 deletions
|
@ -306,7 +306,7 @@ void MarkSectorSeen(sectortype* sec)
|
|||
if (wal.nextWall()->cstat & bits) continue;
|
||||
auto osec = wal.nextSector();
|
||||
if (osec->lotag == 32767) continue;
|
||||
if (osec->__int_ceilingz >= osec->__int_floorz) continue;
|
||||
if (osec->int_ceilingz() >= osec->int_floorz()) continue;
|
||||
show2dsector.Set(sectnum(osec));
|
||||
}
|
||||
}
|
||||
|
@ -390,9 +390,9 @@ bool ShowRedLine(int j, int i)
|
|||
if (automapMode == am_full)
|
||||
{
|
||||
if (sector[i].__int_floorz != sector[i].__int_ceilingz)
|
||||
if (wal->nextSector()->__int_floorz != wal->nextSector()->__int_ceilingz)
|
||||
if (wal->nextSector()->int_floorz() != wal->nextSector()->int_ceilingz())
|
||||
if (((wal->cstat | wal->nextWall()->cstat) & (CSTAT_WALL_MASKED | CSTAT_WALL_1WAY)) == 0)
|
||||
if (sector[i].__int_floorz == wal->nextSector()->__int_floorz)
|
||||
if (sector[i].__int_floorz == wal->nextSector()->int_floorz())
|
||||
return false;
|
||||
if (sector[i].floorpicnum != wal->nextSector()->floorpicnum)
|
||||
return false;
|
||||
|
@ -429,7 +429,7 @@ void drawredlines(int cposx, int cposy, int czoom, int cang)
|
|||
|
||||
auto osec = wal.nextSector();
|
||||
|
||||
if (osec->__int_ceilingz == z1 && osec->__int_floorz == z2)
|
||||
if (osec->int_ceilingz() == z1 && osec->int_floorz() == z2)
|
||||
if (((wal.cstat | wal.nextWall()->cstat) & (CSTAT_WALL_MASKED | CSTAT_WALL_1WAY)) == 0) continue;
|
||||
|
||||
if (ShowRedLine(wallnum(&wal), i))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue