mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-30 17:01:03 +00:00
- SW: Replace use of getzrange_old()
inline wrapper with getzrange()
and remove inline wrappers.
This commit is contained in:
parent
1d39bb371e
commit
f0a347263a
6 changed files with 22 additions and 22 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue