Make sprite shadows ignore float bob

This commit is contained in:
emily 2021-06-06 12:11:42 +02:00 committed by Christoph Oelckers
parent 8b5847d4a2
commit 4f034950be

View file

@ -800,9 +800,8 @@ void HWSprite::Process(HWDrawInfo *di, AActor* thing, sector_t * sector, area_t
{ {
z = thing->floorz; z = thing->floorz;
} }
// [RH] Make floatbobbing a renderer-only effect. // [RH] Make floatbobbing a renderer-only effect.
if (thing->flags2 & MF2_FLOATBOB) else if (thing->flags2 & MF2_FLOATBOB)
{ {
float fz = thing->GetBobOffset(vp.TicFrac); float fz = thing->GetBobOffset(vp.TicFrac);
z += fz; z += fz;