Make PowerupAdjustMapping static const
This commit is contained in:
parent
82dc40c891
commit
ad6a7820cf
|
@ -3236,14 +3236,12 @@ void multi_do_powcap_update (const ubyte *buf)
|
|||
MaxPowerupsAllowed[i]=buf[i+1];
|
||||
}
|
||||
|
||||
#define POWERUPADJUSTS 2
|
||||
int PowerupAdjustMapping[]={11,19};
|
||||
|
||||
static const int PowerupAdjustMapping[]={11,19};
|
||||
|
||||
int multi_powerup_is_4pack (int id)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i=0;i<POWERUPADJUSTS;i++)
|
||||
for (unsigned i=0;i<sizeof(PowerupAdjustMapping)/sizeof(PowerupAdjustMapping[0]);i++)
|
||||
if (id==PowerupAdjustMapping[i])
|
||||
return (1);
|
||||
return (0);
|
||||
|
|
|
@ -4381,14 +4381,11 @@ void multi_do_drop_flag (const ubyte *buf)
|
|||
}
|
||||
}
|
||||
|
||||
#define POWERUPADJUSTS 5
|
||||
int PowerupAdjustMapping[]={11,19,39,41,44};
|
||||
static const int PowerupAdjustMapping[]={11,19,39,41,44};
|
||||
|
||||
int multi_powerup_is_4pack (int id)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i=0;i<POWERUPADJUSTS;i++)
|
||||
for (unsigned i=0;i<sizeof(PowerupAdjustMapping)/sizeof(PowerupAdjustMapping[0]);i++)
|
||||
if (id==PowerupAdjustMapping[i])
|
||||
return (1);
|
||||
return (0);
|
||||
|
|
Loading…
Reference in a new issue