- SW: Replace use of getzrange_old() inline wrapper with getzrange() and remove inline wrappers.

This commit is contained in:
Mitch Richters 2021-10-30 22:47:03 +11:00 committed by Christoph Oelckers
parent 1d39bb371e
commit f0a347263a
6 changed files with 22 additions and 22 deletions

View file

@ -1936,7 +1936,9 @@ DoPlayerZrange(PLAYERp pp)
// for an entire box, NOT just a point. -Useful for clipping
bakcstat = pp->SpriteP->cstat;
RESET(pp->SpriteP->cstat, CSTAT_SPRITE_BLOCK);
FAFgetzrange(pp->posx, pp->posy, pp->posz + Z(8), pp->cursectnum, &pp->hiz, &ceilhit, &pp->loz, &florhit, ((int)pp->SpriteP->clipdist<<2) - GETZRANGE_CLIP_ADJ, CLIPMASK_PLAYER);
vec3_t pos = pp->pos;
pos.z += Z(8);
FAFgetzrange(pos, pp->cursectnum, &pp->hiz, &ceilhit, &pp->loz, &florhit, ((int)pp->SpriteP->clipdist<<2) - GETZRANGE_CLIP_ADJ, CLIPMASK_PLAYER);
pp->SpriteP->cstat = bakcstat;
// 16384+sector (sector first touched) or