Allow setting the colormap from mapinfo (dsda-doom)
This commit is contained in:
parent
478a832515
commit
e12f2ce0fe
4 changed files with 20 additions and 1 deletions
|
|
@ -271,7 +271,11 @@ void FSoftwareRenderer::SetColormap(FLevelLocals *Level)
|
|||
NormalLight.Maps = realcolormaps.Maps;
|
||||
NormalLight.ChangeColor(PalEntry(255, 255, 255), 0);
|
||||
NormalLight.ChangeFade(Level->fadeto);
|
||||
if (Level->fadeto == 0)
|
||||
if(Level->info->flags3 & LEVEL3_HAS_CUSTOM_COLORMAP)
|
||||
{
|
||||
SetDefaultColormap(Level->info->CustomColorMap.GetChars());
|
||||
}
|
||||
else if (Level->fadeto == 0)
|
||||
{
|
||||
SetDefaultColormap(Level->info->FadeTable.GetChars());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue