raze/source/build/src
Mitchell Richters 1ee1c0c920 Revert "- fixed: updatesectorneighborz may not return -1."
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 : &sector[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 : &sector[sect];
}
```

* Also fixes broken Duke elevators and possibly a whole raft of issues.
2021-12-26 23:10:04 +01:00
..
clip.cpp - made several arrays holding sector related data dynamic. 2021-12-26 23:10:02 +01:00
engine.cpp Revert "- fixed: updatesectorneighborz may not return -1." 2021-12-26 23:10:04 +01:00
engine_priv.h - got rid of the MAX... constants and adjusted all places still using them. 2021-12-26 23:10:02 +01:00
mdsprite.cpp - refactored the owner index in tspritetype. 2021-12-26 23:09:53 +01:00
polymost.cpp - removed some unused and obsolete content from engine files. 2021-12-26 23:10:02 +01:00