Skip to content
Snippets Groups Projects
Commit b7a216c7 authored by Marco Z's avatar Marco Z
Browse files

Add COLORMAPREVERSELIST ifdef to toggle Newest -> Oldest extra_colormaps order

parent 43ae25c4
Branches
Tags
No related merge requests found
......@@ -1359,7 +1359,9 @@ void R_ClearColormaps(void)
//
void R_AddColormapToList(extracolormap_t *extra_colormap)
{
#ifndef COLORMAPREVERSELIST
extracolormap_t *exc;
#endif
if (!extra_colormaps)
{
......@@ -1369,11 +1371,18 @@ void R_AddColormapToList(extracolormap_t *extra_colormap)
return;
}
#ifdef COLORMAPREVERSELIST
extra_colormaps->prev = extra_colormap;
extra_colormap->next = extra_colormaps;
extra_colormaps = extra_colormap;
extra_colormap->prev = 0;
#else
for (exc = extra_colormaps; exc->next; exc = exc->next);
exc->next = extra_colormap;
extra_colormap->prev = exc;
extra_colormap->next = 0;
#endif
}
#ifdef EXTRACOLORMAPLUMPS
......
......@@ -100,6 +100,9 @@ INT32 R_CheckTextureNumForName(const char *name);
// Uncomment to enable
//#define EXTRACOLORMAPLUMPS
// Uncomment to make extra_colormaps order Newest -> Oldest
//#define COLORMAPREVERSELIST
void R_ReInitColormaps(UINT16 num);
void R_ClearColormaps(void);
void R_AddColormapToList(extracolormap_t *extra_colormap);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment