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

* Partially addresses #845.
This commit is contained in:
Mitchell Richters 2023-01-08 23:03:22 +11:00
parent 7262184d53
commit 3271c2011e

View file

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