Rename numspraycans to nummapspraycans

- Consistency with nummaprings
- Prevents confusion with incoming gamedata struct variable
This commit is contained in:
toaster 2023-08-22 23:03:46 +01:00
parent f7635c4399
commit 3ccf668fda
4 changed files with 9 additions and 9 deletions

View file

@ -713,7 +713,7 @@ extern INT32 luabanks[NUM_LUABANKS];
extern INT32 nummaprings; //keep track of spawned rings/coins
extern UINT8 numspraycans;
extern UINT8 nummapspraycans;
extern UINT32 bluescore; ///< Blue Team Scores
extern UINT32 redscore; ///< Red Team Scores

View file

@ -219,7 +219,7 @@ UINT32 bluescore, redscore; // CTF and Team Match team scores
// ring count... for PERFECT!
INT32 nummaprings = 0;
UINT8 numspraycans = 0;
UINT8 nummapspraycans = 0;
// Elminates unnecessary searching.
boolean CheckForBustableBlocks;

View file

@ -12914,10 +12914,10 @@ static boolean P_SetupSpawnedMapThing(mapthing_t *mthing, mobj_t *mobj)
}
case MT_SPRAYCAN:
{
if (numspraycans)
if (nummapspraycans)
{
if (numspraycans != UINT8_MAX)
numspraycans++;
if (nummapspraycans != UINT8_MAX)
nummapspraycans++;
P_RemoveMobj(mobj);
return false;
@ -12926,7 +12926,7 @@ static boolean P_SetupSpawnedMapThing(mapthing_t *mthing, mobj_t *mobj)
P_SetScale(mobj, mobj->destscale = 2*mobj->scale);
P_SprayCanInit(mobj);
numspraycans++;
nummapspraycans++;
break;
}
case MT_SKYBOX:

View file

@ -816,7 +816,7 @@ static void P_SpawnMapThings(boolean spawnemblems)
if (spawnemblems)
{
if (numspraycans == 0)
if (nummapspraycans == 0)
{
UINT16 col = mapheaderinfo[gamemap-1]->cachedcan;
@ -825,7 +825,7 @@ static void P_SpawnMapThings(boolean spawnemblems)
CONS_Alert(CONS_WARNING, "SPRAY CANS: Map has assigned Spray Cans but no pickup placed!\n");
}
}
else if (numspraycans > 1)
else if (nummapspraycans > 1)
CONS_Alert(CONS_ERROR, "SPRAY CANS: Map has too many Spray Cans (%d)!", numspraycans);
}
}
@ -7425,7 +7425,7 @@ static void P_InitLevelSettings(void)
maptargets = numtargets = 0;
battleprisons = false;
numspraycans = 0;
nummapspraycans = 0;
// emerald hunt
hunt1 = hunt2 = hunt3 = NULL;