diff --git a/src/gl/scene/gl_weapon.cpp b/src/gl/scene/gl_weapon.cpp index 869952b42..810198395 100644 --- a/src/gl/scene/gl_weapon.cpp +++ b/src/gl/scene/gl_weapon.cpp @@ -124,7 +124,6 @@ void GLSceneDrawer::SetupWeaponLight() void GLSceneDrawer::DrawPlayerSprites(sector_t * viewsector, bool hudModelStep) { bool brightflash = false; - FColormap cm; AActor * playermo=players[consoleplayer].camera; player_t * player=playermo->player; @@ -172,7 +171,7 @@ void GLSceneDrawer::DrawPlayerSprites(sector_t * viewsector, bool hudModelStep) if (psp->GetState() != nullptr) { - FColormap cmc = cm; + FColormap cmc = light.cm; int ll = light.lightlevel; if (bright) {