- fixed broken getzrange setup.

When adding support for slope sprites an assignment to daz2 got lost.
This commit is contained in:
Christoph Oelckers 2021-12-23 21:58:45 +01:00
parent 3992dfae84
commit d84556d829

View file

@ -1177,6 +1177,7 @@ void getzrange(const vec3_t& pos, sectortype* sect, int32_t* ceilz, CollisionBas
{
if ((cstat & CSTAT_SPRITE_ALIGNMENT_MASK) == CSTAT_SPRITE_ALIGNMENT_FLOOR) daz = spr->pos.Z;
else daz = spriteGetZOfSlope(spr, pos.X, pos.Y);
daz2 = daz;
if ((cstat & CSTAT_SPRITE_ONE_SIDE) != 0 && (pos.Z > daz) == ((cstat & CSTAT_SPRITE_YFLIP)==0))
continue;