mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 15:21:51 +00:00
Remove GlobVis global as it apparently wasn't very global!
This commit is contained in:
parent
80e1844d6c
commit
40f79371f5
5 changed files with 3 additions and 6 deletions
|
@ -940,7 +940,7 @@ namespace swrenderer
|
|||
{
|
||||
wallshade = LIGHT2SHADE(curline->sidedef->GetLightLevel(foggy, frontsector->lightlevel)
|
||||
+ r_actualextralight);
|
||||
GlobVis = r_WallVisibility;
|
||||
double GlobVis = r_WallVisibility;
|
||||
rw_lightleft = float(GlobVis / WallC.sz1);
|
||||
rw_lightstep = float((GlobVis / WallC.sz2 - rw_lightleft) / (WallC.sx2 - WallC.sx1));
|
||||
}
|
||||
|
|
|
@ -33,6 +33,7 @@ namespace swrenderer
|
|||
double planeheight;
|
||||
bool plane_shade;
|
||||
int planeshade;
|
||||
double GlobVis;
|
||||
fixed_t pviewx, pviewy;
|
||||
fixed_t xscale, yscale;
|
||||
double xstepscale, ystepscale;
|
||||
|
|
|
@ -45,8 +45,6 @@ namespace swrenderer
|
|||
double r_SpriteVisibility;
|
||||
double r_ParticleVisibility;
|
||||
|
||||
double GlobVis;
|
||||
|
||||
FDynamicColormap *basecolormap; // [RH] colormap currently drawing with
|
||||
int fixedlightlev;
|
||||
FSWColormap *fixedcolormap;
|
||||
|
|
|
@ -57,8 +57,6 @@ namespace swrenderer
|
|||
extern float r_TiltVisibility;
|
||||
extern double r_SpriteVisibility;
|
||||
|
||||
extern double GlobVis;
|
||||
|
||||
extern int r_actualextralight;
|
||||
extern bool foggy;
|
||||
extern int fixedlightlev;
|
||||
|
|
|
@ -175,7 +175,7 @@ namespace swrenderer
|
|||
}
|
||||
|
||||
int shade = LIGHT2SHADE(spr->sector->lightlevel + r_actualextralight);
|
||||
GlobVis = r_WallVisibility;
|
||||
double GlobVis = r_WallVisibility;
|
||||
float lightleft = float(GlobVis / spr->wallc.sz1);
|
||||
float lightstep = float((GlobVis / spr->wallc.sz2 - lightleft) / (spr->wallc.sx2 - spr->wallc.sx1));
|
||||
float light = lightleft + (x1 - spr->wallc.sx1) * lightstep;
|
||||
|
|
Loading…
Reference in a new issue