mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-30 15:52:09 +00:00
- Fixed compiler errors with r_fullbrightignoresectorcolor merge
This commit is contained in:
parent
1ae478aacd
commit
ec9dd3f5af
1 changed files with 3 additions and 8 deletions
|
@ -457,11 +457,6 @@ void R_DeinitColormaps ()
|
|||
SpecialColormaps.Clear();
|
||||
fakecmaps.Clear();
|
||||
delete[] realcolormaps.Maps;
|
||||
if (realfbcolormaps != NULL)
|
||||
{
|
||||
delete[] realfbcolormaps;
|
||||
realfbcolormaps = NULL;
|
||||
}
|
||||
delete[] realfbcolormaps.Maps;
|
||||
FreeSpecialLights();
|
||||
}
|
||||
|
@ -554,10 +549,10 @@ void R_InitColormaps ()
|
|||
}
|
||||
|
||||
// [SP] Create a copy of the colormap
|
||||
if (!realfbcolormaps)
|
||||
if (!realfbcolormaps.Maps)
|
||||
{
|
||||
realfbcolormaps = new BYTE[256*NUMCOLORMAPS*fakecmaps.Size()];
|
||||
memcpy(realfbcolormaps, realcolormaps, 256*NUMCOLORMAPS*fakecmaps.Size());
|
||||
realfbcolormaps.Maps = new BYTE[256*NUMCOLORMAPS*fakecmaps.Size()];
|
||||
memcpy(realfbcolormaps.Maps, realcolormaps.Maps, 256*NUMCOLORMAPS*fakecmaps.Size());
|
||||
}
|
||||
|
||||
NormalLight.Color = PalEntry (255, 255, 255);
|
||||
|
|
Loading…
Reference in a new issue