mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-18 07:22:28 +00:00
Merge branch 'colormap-overhaul' into colormap-overhaul-change-ldef
This commit is contained in:
commit
7767adbf32
1 changed files with 4 additions and 12 deletions
12
src/r_data.c
12
src/r_data.c
|
@ -1896,7 +1896,7 @@ extracolormap_t *R_CreateColormap(char *p1, char *p2, char *p3)
|
|||
|
||||
//
|
||||
// R_AddColormaps()
|
||||
// NOTE: The result colormap DOES get added to the extra_colormaps chain!
|
||||
// NOTE: The result colormap is not added to the extra_colormaps chain. You must do that yourself!
|
||||
//
|
||||
extracolormap_t *R_AddColormaps(extracolormap_t *exc_augend, extracolormap_t *exc_addend,
|
||||
boolean subR, boolean subG, boolean subB, boolean subA,
|
||||
|
@ -1998,17 +1998,9 @@ extracolormap_t *R_AddColormaps(extracolormap_t *exc_augend, extracolormap_t *ex
|
|||
// put it together
|
||||
///////////////////
|
||||
|
||||
if (!(exc = R_GetColormapFromList(exc_augend)))
|
||||
{
|
||||
exc_augend->colormap = lighttable ? R_CreateLightTable(exc_augend) : NULL;
|
||||
R_AddColormapToList(exc_augend);
|
||||
exc_augend->next = exc_augend->prev = NULL;
|
||||
return exc_augend;
|
||||
}
|
||||
else
|
||||
{
|
||||
Z_Free(exc_augend);
|
||||
return exc;
|
||||
}
|
||||
}
|
||||
|
||||
// Thanks to quake2 source!
|
||||
|
|
Loading…
Reference in a new issue