Convert r_actualextralight global to a function
This commit is contained in:
parent
40f79371f5
commit
f912b4ab8b
9 changed files with 19 additions and 23 deletions
|
|
@ -240,7 +240,7 @@ namespace swrenderer
|
|||
}
|
||||
else
|
||||
{ // diminished light
|
||||
int spriteshade = LIGHT2SHADE(sec->lightlevel + r_actualextralight);
|
||||
int spriteshade = LIGHT2SHADE(sec->lightlevel + R_ActualExtraLight(foggy));
|
||||
spr->Style.BaseColormap = mybasecolormap;
|
||||
spr->Style.ColormapNum = GETPALOOKUP(r_SpriteVisibility / MAX(MINZ, (double)spr->depth), spriteshade);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue