Fixed randomly colored weapons

This commit is contained in:
alexey.lysiuk 2018-04-30 10:35:18 +03:00
parent ebc1c5741b
commit 76ed80fe56

View file

@ -124,7 +124,6 @@ void GLSceneDrawer::SetupWeaponLight()
void GLSceneDrawer::DrawPlayerSprites(sector_t * viewsector, bool hudModelStep) void GLSceneDrawer::DrawPlayerSprites(sector_t * viewsector, bool hudModelStep)
{ {
bool brightflash = false; bool brightflash = false;
FColormap cm;
AActor * playermo=players[consoleplayer].camera; AActor * playermo=players[consoleplayer].camera;
player_t * player=playermo->player; player_t * player=playermo->player;
@ -172,7 +171,7 @@ void GLSceneDrawer::DrawPlayerSprites(sector_t * viewsector, bool hudModelStep)
if (psp->GetState() != nullptr) if (psp->GetState() != nullptr)
{ {
FColormap cmc = cm; FColormap cmc = light.cm;
int ll = light.lightlevel; int ll = light.lightlevel;
if (bright) if (bright)
{ {