mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-25 13:31:55 +00:00
- 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:
parent
7262184d53
commit
3271c2011e
1 changed files with 3 additions and 6 deletions
|
@ -312,13 +312,10 @@ void DoShadows(tspriteArray& tsprites, tspritetype* tsp, double viewz)
|
|||
scale = tsp->scale;
|
||||
}
|
||||
|
||||
loz = ownerActor->user.loz;
|
||||
if (ownerActor->user.lowActor)
|
||||
loz = DoShadowFindGroundPoint(tsp);
|
||||
if (ownerActor->user.lowActor && (ownerActor->user.lowActor->spr.cstat & (CSTAT_SPRITE_ALIGNMENT_WALL | CSTAT_SPRITE_ALIGNMENT_FLOOR)))
|
||||
{
|
||||
if (!(ownerActor->user.lowActor->spr.cstat & (CSTAT_SPRITE_ALIGNMENT_WALL | CSTAT_SPRITE_ALIGNMENT_FLOOR)))
|
||||
{
|
||||
loz = DoShadowFindGroundPoint(tsp);
|
||||
}
|
||||
loz = ownerActor->user.loz;
|
||||
}
|
||||
|
||||
// need to find the ground here
|
||||
|
|
Loading…
Reference in a new issue