Make sprite shadows ignore float bob

This commit is contained in:
emily 2021-06-06 12:11:42 +02:00 committed by Emile Belanger
parent 666a366ef6
commit 2e869dd399

View file

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