From a0a40281b334604399848dd03101900dbf035e3f Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Fri, 3 Feb 2017 08:19:59 +0100 Subject: [PATCH] Simplify skyplane light selection --- src/swrenderer/plane/r_skyplane.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/swrenderer/plane/r_skyplane.cpp b/src/swrenderer/plane/r_skyplane.cpp index b4780065f..85655c594 100644 --- a/src/swrenderer/plane/r_skyplane.cpp +++ b/src/swrenderer/plane/r_skyplane.cpp @@ -147,7 +147,6 @@ namespace swrenderer backpos = int(fmod(backdpos, sky2cyl * 65536.0)); } - bool fakefixed = false; CameraLight *cameraLight = CameraLight::Instance(); if (cameraLight->fixedcolormap) { @@ -155,15 +154,10 @@ namespace swrenderer } else { - fakefixed = true; - cameraLight->fixedcolormap = &NormalLight; - drawerargs.SetLight(cameraLight->fixedcolormap, 0, 0); + drawerargs.SetLight(&NormalLight, 0, 0); } DrawSky(pl); - - if (fakefixed) - cameraLight->fixedcolormap = nullptr; } void RenderSkyPlane::DrawSkyColumnStripe(int start_x, int y1, int y2, double scale, double texturemid, double yrepeat)