mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 11:10:47 +00:00
Make updatesectorz() fall back to updatesector() in cases where it would have returned -1
Note that both functions will still return -1 when x or y coordinates are out of bounds. git-svn-id: https://svn.eduke32.com/eduke32@7456 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
eac78ec995
commit
decce5bc70
1 changed files with 1 additions and 1 deletions
|
@ -11101,7 +11101,7 @@ void updatesectorz(int32_t x, int32_t y, int32_t z, int16_t *sectnum)
|
||||||
if (inside_z_p(x,y,z, i))
|
if (inside_z_p(x,y,z, i))
|
||||||
SET_AND_RETURN(*sectnum, i);
|
SET_AND_RETURN(*sectnum, i);
|
||||||
|
|
||||||
*sectnum = -1;
|
updatesector(x, y, sectnum);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue