mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-30 21:11:00 +00:00
bump maxskins to 64, fix overflow error
This commit is contained in:
parent
b560a90890
commit
e63d7537e0
2 changed files with 3 additions and 3 deletions
|
@ -244,7 +244,7 @@ extern FILE *logstream;
|
||||||
// NOTE: it needs more than this to increase the number of players...
|
// NOTE: it needs more than this to increase the number of players...
|
||||||
|
|
||||||
#define MAXPLAYERS 16
|
#define MAXPLAYERS 16
|
||||||
#define MAXSKINS 32
|
#define MAXSKINS 64
|
||||||
#define PLAYERSMASK (MAXPLAYERS-1)
|
#define PLAYERSMASK (MAXPLAYERS-1)
|
||||||
#define MAXPLAYERNAME 21
|
#define MAXPLAYERNAME 21
|
||||||
|
|
||||||
|
|
|
@ -2500,7 +2500,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
|
||||||
|
@ -2771,7 +2771,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
|
||||||
|
|
Loading…
Reference in a new issue