mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 23:12:24 +00:00
This commit is contained in:
commit
5384f26b69
1 changed files with 5 additions and 7 deletions
|
@ -57,13 +57,11 @@ FORCEINLINE FDynamicColormap *GetColorTable(const FColormap &cm, PalEntry Specia
|
|||
c.Decolorize();
|
||||
c = SpecialColor.Modulate(c);
|
||||
}
|
||||
auto p = &NormalLight;
|
||||
if (c == p->Color &&
|
||||
cm.FadeColor == p->Fade &&
|
||||
cm.Desaturation == p->Desaturate)
|
||||
{
|
||||
return p;
|
||||
}
|
||||
|
||||
// First colormap is the default Doom colormap.
|
||||
// testcolor and testfade CCMDs modifies the first colormap, so we have to do the check without looking at the actual values stored in NormalLight.
|
||||
if (c == PalEntry(255, 255, 255) && cm.FadeColor == 0 && cm.Desaturation == 0)
|
||||
return &NormalLight;
|
||||
|
||||
return GetSpecialLights(c, cm.FadeColor, cm.Desaturation);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue