- fixed: negative extra light levels should not be treated like inverse flashes, that's only the case for INT_MIN.

This commit is contained in:
Christoph Oelckers 2013-07-22 17:30:08 +02:00
parent 2f325a1b81
commit 4e4eb7189a

View file

@ -813,7 +813,7 @@ void FGLRenderer::SetFixedColormap (player_t *player)
player_t * cplayer = player->camera->player; player_t * cplayer = player->camera->player;
if (cplayer) if (cplayer)
{ {
if (cplayer->extralight<0) if (cplayer->extralight == INT_MIN)
{ {
gl_fixedcolormap=CM_FIRSTSPECIALCOLORMAP + INVERSECOLORMAP; gl_fixedcolormap=CM_FIRSTSPECIALCOLORMAP + INVERSECOLORMAP;
extralight=0; extralight=0;