mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-07 09:40:43 +00:00
1ee1c0c920
This reverts commit c074b0995648a4057c516e5646f5fe7a11719317. * The commit notes talk about `updatesectorneighborz()`, but the change is applied to `nextsectorneighborz()`. Further to this, `nextsectorneighborz()` is only called from some ptr wrappers in `build.h` and they both test against `-1` return values. ``` inline sectortype* nextsectorneighborzptr(int16_t sectnum, int32_t refz, int16_t topbottom, int16_t direction) { auto sect = nextsectorneighborz(sectnum, refz, topbottom, direction); return sect == -1? nullptr : §or[sect]; } inline sectortype* nextsectorneighborzptr(sectortype* sectp, int32_t refz, int16_t topbottom, int16_t direction) { auto sect = nextsectorneighborz(sector.IndexOf(sectp), refz, topbottom, direction); return sect == -1? nullptr : §or[sect]; } ``` * Also fixes broken Duke elevators and possibly a whole raft of issues. |
||
---|---|---|
.. | ||
clip.cpp | ||
engine.cpp | ||
engine_priv.h | ||
mdsprite.cpp | ||
polymost.cpp |