mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 08:51:24 +00:00
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:
parent
0d62e6befe
commit
b42b9de2a2
1 changed files with 6 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue