bump maxskins to 64, fix overflow error

This commit is contained in:
TehRealSalt 2019-01-14 18:16:07 -05:00
parent b560a90890
commit e63d7537e0
2 changed files with 3 additions and 3 deletions

View file

@ -244,7 +244,7 @@ extern FILE *logstream;
// NOTE: it needs more than this to increase the number of players...
#define MAXPLAYERS 16
#define MAXSKINS 32
#define MAXSKINS 64
#define PLAYERSMASK (MAXPLAYERS-1)
#define MAXPLAYERNAME 21

View file

@ -2500,7 +2500,7 @@ void R_DrawMasked(void)
// ==========================================================================
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
//#define SKINVALUES
#ifdef SKINVALUES
@ -2771,7 +2771,7 @@ void R_AddSkins(UINT16 wadnum)
// advance by default
lastlump = lump + 1;
if (numskins > MAXSKINS)
if (numskins >= MAXSKINS)
{
CONS_Debug(DBG_RENDER, "ignored skin (%d skins maximum)\n", MAXSKINS);
continue; // so we know how many skins couldn't be added