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:
terminx 2019-03-30 19:35:50 +00:00 committed by Christoph Oelckers
parent eac78ec995
commit decce5bc70

View file

@ -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))
SET_AND_RETURN(*sectnum, i);
*sectnum = -1;
updatesector(x, y, sectnum);
}