mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 14:52:01 +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
|
@ -2149,17 +2149,20 @@ tspritetype *viewAddEffect(int nTSprite, VIEW_EFFECT nViewEffect)
|
|||
}
|
||||
case VIEW_EFFECT_0:
|
||||
{
|
||||
auto pNSprite = viewInsertTSprite(pTSprite->sectnum, 32767, pTSprite);
|
||||
pNSprite->z = getflorzofslope(pTSprite->sectnum, pNSprite->x, pNSprite->y);
|
||||
pNSprite->shade = 127;
|
||||
pNSprite->cstat |= 2;
|
||||
pNSprite->xrepeat = pTSprite->xrepeat;
|
||||
pNSprite->yrepeat = pTSprite->yrepeat>>2;
|
||||
pNSprite->picnum = pTSprite->picnum;
|
||||
pNSprite->pal = 5;
|
||||
int height = tilesiz[pNSprite->picnum].y;
|
||||
int center = height / 2 + tileTopOffset(pNSprite->picnum);
|
||||
pNSprite->z -= (pNSprite->yrepeat<<2)*(height-center);
|
||||
if (r_shadows)
|
||||
{
|
||||
auto pNSprite = viewInsertTSprite(pTSprite->sectnum, 32767, pTSprite);
|
||||
pNSprite->z = getflorzofslope(pTSprite->sectnum, pNSprite->x, pNSprite->y);
|
||||
pNSprite->shade = 127;
|
||||
pNSprite->cstat |= 2;
|
||||
pNSprite->xrepeat = pTSprite->xrepeat;
|
||||
pNSprite->yrepeat = pTSprite->yrepeat >> 2;
|
||||
pNSprite->picnum = pTSprite->picnum;
|
||||
pNSprite->pal = 5;
|
||||
int height = tilesiz[pNSprite->picnum].y;
|
||||
int center = height / 2 + tileTopOffset(pNSprite->picnum);
|
||||
pNSprite->z -= (pNSprite->yrepeat << 2) * (height - center);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case VIEW_EFFECT_1:
|
||||
|
|
Loading…
Reference in a new issue