mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-18 10:21:42 +00:00
Fix blinking wall light regression
This commit is contained in:
parent
7b4d9675c9
commit
c219969b68
1 changed files with 3 additions and 2 deletions
|
@ -339,7 +339,8 @@ namespace swrenderer
|
|||
|
||||
double xmagnitude = 1.0;
|
||||
|
||||
for (int x = x1; x < x2; x++, light += lightstep)
|
||||
float curlight = light;
|
||||
for (int x = x1; x < x2; x++, curlight += lightstep)
|
||||
{
|
||||
int y1 = uwal[x];
|
||||
int y2 = dwal[x];
|
||||
|
@ -347,7 +348,7 @@ namespace swrenderer
|
|||
continue;
|
||||
|
||||
if (!fixed)
|
||||
drawerargs.SetLight(basecolormap, light, wallshade);
|
||||
drawerargs.SetLight(basecolormap, curlight, wallshade);
|
||||
|
||||
if (x + 1 < x2) xmagnitude = fabs(FIXED2DBL(lwal[x + 1]) - FIXED2DBL(lwal[x]));
|
||||
|
||||
|
|
Loading…
Reference in a new issue