mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-28 23:12:36 +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;
|
scale = tsp->scale;
|
||||||
}
|
}
|
||||||
|
|
||||||
loz = ownerActor->user.loz;
|
loz = DoShadowFindGroundPoint(tsp);
|
||||||
if (ownerActor->user.lowActor)
|
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 = ownerActor->user.loz;
|
||||||
{
|
|
||||||
loz = DoShadowFindGroundPoint(tsp);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// need to find the ground here
|
// need to find the ground here
|
||||||
|
|
Loading…
Reference in a new issue