- moved part of the fade init for LEVEL_HASFADETABLE to the common colormap initialization to have all of it in one place.
Otherwise this is easily overlooked when changing things later and potentially causing problems.
This commit is contained in:
parent
9ba32cb994
commit
91813ec43d
3 changed files with 9 additions and 10 deletions
|
|
@ -335,19 +335,9 @@ void FSoftwareRenderer::PreprocessLevel()
|
|||
NormalLight.Maps = realcolormaps.Maps;
|
||||
NormalLight.ChangeColor(PalEntry(255, 255, 255), 0);
|
||||
NormalLight.ChangeFade(level.fadeto);
|
||||
|
||||
if (level.fadeto == 0)
|
||||
{
|
||||
SetDefaultColormap(level.info->FadeTable);
|
||||
if (level.flags & LEVEL_HASFADETABLE)
|
||||
{
|
||||
// This should really be done differently.
|
||||
level.fadeto = 0xff939393; //[SP] Hexen True-color compatibility, just use gray.
|
||||
for (auto &s : level.sectors)
|
||||
{
|
||||
s.Colormap.FadeColor = level.fadeto;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue