Revert "- SW: Tune shadow drawing code so that it by default uses the sector's interpolated floorz when possible."

This reverts commit 3271c2011e.

* Fixes #884
* Fixes #892
This commit is contained in:
Mitchell Richters 2023-03-16 11:23:05 +11:00
parent 0d62e6befe
commit b42b9de2a2

View file

@ -312,10 +312,13 @@ void DoShadows(tspriteArray& tsprites, tspritetype* tsp, double viewz)
scale = tsp->scale; scale = tsp->scale;
} }
loz = DoShadowFindGroundPoint(tsp); loz = ownerActor->user.loz;
if (ownerActor->user.lowActor && (ownerActor->user.lowActor->spr.cstat & (CSTAT_SPRITE_ALIGNMENT_WALL | CSTAT_SPRITE_ALIGNMENT_FLOOR))) if (ownerActor->user.lowActor)
{ {
loz = ownerActor->user.loz; if (!(ownerActor->user.lowActor->spr.cstat & (CSTAT_SPRITE_ALIGNMENT_WALL | CSTAT_SPRITE_ALIGNMENT_FLOOR)))
{
loz = DoShadowFindGroundPoint(tsp);
}
} }
// need to find the ground here // need to find the ground here