Force colormap/light selection to go through function calls

This commit is contained in:
Magnus Norddahl 2017-01-30 05:07:07 +01:00
commit 81a20213a7
5 changed files with 117 additions and 95 deletions

View file

@ -108,7 +108,7 @@ namespace swrenderer
basecolormap = colormap;
GlobVis = LightVisibility::Instance()->FlatPlaneGlobVis() / planeheight;
drawerargs.dc_light = 0;
CameraLight *cameraLight = CameraLight::Instance();
if (cameraLight->fixedlightlev >= 0)
{