mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 14:51:46 +00:00
Fixed randomly colored weapons
This commit is contained in:
parent
ebc1c5741b
commit
76ed80fe56
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue