- fixed bad parameter to getzrange.

This originated from 1d39bb371e where the getzrange_old function was removed
This commit is contained in:
Christoph Oelckers 2021-12-13 09:36:29 +01:00
parent 2253a418c7
commit e104316e75

View file

@ -366,7 +366,7 @@ Collision movespritez(DExhumedActor* pActor, int z, int height, int, int clipdis
int hihit, lohit;
vec3_t pos = pSprite->pos;
pos.z -= 256;
getzrange(&pSprite->pos, pSprite->sectnum,
getzrange(&pos, pSprite->sectnum,
&sprceiling, &hihit, &sprfloor, &lohit, 128, CLIPMASK0);
hiHit.setFromEngine(hihit);
loHit.setFromEngine(lohit);