From 4e4eb7189a1c076e04e2e1928a8ac7b75e923277 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 22 Jul 2013 17:30:08 +0200 Subject: [PATCH] - fixed: negative extra light levels should not be treated like inverse flashes, that's only the case for INT_MIN. --- src/gl/scene/gl_scene.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gl/scene/gl_scene.cpp b/src/gl/scene/gl_scene.cpp index 99660267cf..072d3408c1 100644 --- a/src/gl/scene/gl_scene.cpp +++ b/src/gl/scene/gl_scene.cpp @@ -813,7 +813,7 @@ void FGLRenderer::SetFixedColormap (player_t *player) player_t * cplayer = player->camera->player; if (cplayer) { - if (cplayer->extralight<0) + if (cplayer->extralight == INT_MIN) { gl_fixedcolormap=CM_FIRSTSPECIALCOLORMAP + INVERSECOLORMAP; extralight=0;