mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-09 07:21:09 +00:00
- enabled r_shadows in Blood.
This was the only game not allowing to switch off the shadows.
This commit is contained in:
parent
9b03537f3a
commit
aa67875792
1 changed files with 14 additions and 11 deletions
|
@ -2148,6 +2148,8 @@ tspritetype *viewAddEffect(int nTSprite, VIEW_EFFECT nViewEffect)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case VIEW_EFFECT_0:
|
case VIEW_EFFECT_0:
|
||||||
|
{
|
||||||
|
if (r_shadows)
|
||||||
{
|
{
|
||||||
auto pNSprite = viewInsertTSprite(pTSprite->sectnum, 32767, pTSprite);
|
auto pNSprite = viewInsertTSprite(pTSprite->sectnum, 32767, pTSprite);
|
||||||
pNSprite->z = getflorzofslope(pTSprite->sectnum, pNSprite->x, pNSprite->y);
|
pNSprite->z = getflorzofslope(pTSprite->sectnum, pNSprite->x, pNSprite->y);
|
||||||
|
@ -2160,6 +2162,7 @@ tspritetype *viewAddEffect(int nTSprite, VIEW_EFFECT nViewEffect)
|
||||||
int height = tilesiz[pNSprite->picnum].y;
|
int height = tilesiz[pNSprite->picnum].y;
|
||||||
int center = height / 2 + tileTopOffset(pNSprite->picnum);
|
int center = height / 2 + tileTopOffset(pNSprite->picnum);
|
||||||
pNSprite->z -= (pNSprite->yrepeat << 2) * (height - center);
|
pNSprite->z -= (pNSprite->yrepeat << 2) * (height - center);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case VIEW_EFFECT_1:
|
case VIEW_EFFECT_1:
|
||||||
|
|
Loading…
Reference in a new issue