- fixed incorrect value range for particle's depth value, used for sorting.

This commit is contained in:
Christoph Oelckers 2020-04-19 13:46:00 +02:00
parent e63871d6f5
commit a21d3ae106

View file

@ -1222,7 +1222,7 @@ void HWSprite::ProcessParticle (HWDrawInfo *di, particle_t *particle, sector_t *
z1=z-scalefac;
z2=z+scalefac;
depth = FloatToFixed((x - vp.Pos.X) * vp.TanCos + (y - vp.Pos.Y) * vp.TanSin);
depth = (float)((x - vp.Pos.X) * vp.TanCos + (y - vp.Pos.Y) * vp.TanSin);
actor=nullptr;
this->particle=particle;