mirror of
https://github.com/DrBeef/Raze.git
synced 2025-02-20 18:52:43 +00:00
- fixed nextsectorneighborzptr
This commit is contained in:
parent
9b52b3b451
commit
c46c8a68cd
1 changed files with 7 additions and 1 deletions
|
@ -478,7 +478,13 @@ int32_t nextsectorneighborz(int16_t sectnum, int32_t refz, int16_t topbottom,
|
|||
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[sectnum];
|
||||
return sect == -1? nullptr : §or[sect];
|
||||
}
|
||||
|
||||
inline sectortype* nextsectorneighborzptr(sectortype* sectp, int32_t refz, int16_t topbottom, int16_t direction)
|
||||
{
|
||||
auto sect = nextsectorneighborz(int(sectp - sector), refz, topbottom, direction);
|
||||
return sect == -1? nullptr : §or[sect];
|
||||
}
|
||||
|
||||
int32_t getceilzofslopeptr(usectorptr_t sec, int32_t dax, int32_t day) ATTRIBUTE((nonnull(1)));
|
||||
|
|
Loading…
Reference in a new issue