mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-30 21:20:54 +00:00
Colormap overhaul: Wrap R_CheckNumForNameList under ifdef EXTRACOLORMAPLUMPS
This commit is contained in:
parent
6844ed37c5
commit
efe0af960d
1 changed files with 4 additions and 4 deletions
|
@ -1144,6 +1144,10 @@ void R_ParseTEXTURESLump(UINT16 wadNum, UINT16 lumpNum, INT32 *texindex)
|
||||||
Z_Free((void *)texturesText);
|
Z_Free((void *)texturesText);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef EXTRACOLORMAPLUMPS
|
||||||
|
static lumplist_t *colormaplumps = NULL; ///\todo free leak
|
||||||
|
static size_t numcolormaplumps = 0;
|
||||||
|
|
||||||
static inline lumpnum_t R_CheckNumForNameList(const char *name, lumplist_t *list, size_t listsize)
|
static inline lumpnum_t R_CheckNumForNameList(const char *name, lumplist_t *list, size_t listsize)
|
||||||
{
|
{
|
||||||
size_t i;
|
size_t i;
|
||||||
|
@ -1160,10 +1164,6 @@ static inline lumpnum_t R_CheckNumForNameList(const char *name, lumplist_t *list
|
||||||
return LUMPERROR;
|
return LUMPERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef EXTRACOLORMAPLUMPS
|
|
||||||
static lumplist_t *colormaplumps = NULL; ///\todo free leak
|
|
||||||
static size_t numcolormaplumps = 0;
|
|
||||||
|
|
||||||
static void R_InitExtraColormaps(void)
|
static void R_InitExtraColormaps(void)
|
||||||
{
|
{
|
||||||
lumpnum_t startnum, endnum;
|
lumpnum_t startnum, endnum;
|
||||||
|
|
Loading…
Reference in a new issue