mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 20:41:46 +00:00
Fix skins overflow
This commit is contained in:
parent
8e862b3c98
commit
123b97c5ed
2 changed files with 3 additions and 3 deletions
|
|
@ -2306,7 +2306,7 @@ void R_DrawMasked(void)
|
||||||
// ==========================================================================
|
// ==========================================================================
|
||||||
|
|
||||||
INT32 numskins = 0;
|
INT32 numskins = 0;
|
||||||
skin_t skins[MAXSKINS+1];
|
skin_t skins[MAXSKINS];
|
||||||
// FIXTHIS: don't work because it must be inistilised before the config load
|
// FIXTHIS: don't work because it must be inistilised before the config load
|
||||||
//#define SKINVALUES
|
//#define SKINVALUES
|
||||||
#ifdef SKINVALUES
|
#ifdef SKINVALUES
|
||||||
|
|
@ -2559,7 +2559,7 @@ void R_AddSkins(UINT16 wadnum)
|
||||||
// advance by default
|
// advance by default
|
||||||
lastlump = lump + 1;
|
lastlump = lump + 1;
|
||||||
|
|
||||||
if (numskins > MAXSKINS)
|
if (numskins >= MAXSKINS)
|
||||||
{
|
{
|
||||||
CONS_Debug(DBG_RENDER, "ignored skin (%d skins maximum)\n", MAXSKINS);
|
CONS_Debug(DBG_RENDER, "ignored skin (%d skins maximum)\n", MAXSKINS);
|
||||||
continue; // so we know how many skins couldn't be added
|
continue; // so we know how many skins couldn't be added
|
||||||
|
|
|
||||||
|
|
@ -180,7 +180,7 @@ typedef struct drawnode_s
|
||||||
} drawnode_t;
|
} drawnode_t;
|
||||||
|
|
||||||
extern INT32 numskins;
|
extern INT32 numskins;
|
||||||
extern skin_t skins[MAXSKINS + 1];
|
extern skin_t skins[MAXSKINS];
|
||||||
|
|
||||||
void SetPlayerSkin(INT32 playernum,const char *skinname);
|
void SetPlayerSkin(INT32 playernum,const char *skinname);
|
||||||
void SetPlayerSkinByNum(INT32 playernum,INT32 skinnum); // Tails 03-16-2002
|
void SetPlayerSkinByNum(INT32 playernum,INT32 skinnum); // Tails 03-16-2002
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue