Refactoring patch by DevHC
This commit is contained in:
parent
21668c0616
commit
fef4d12d68
31 changed files with 60 additions and 98 deletions
|
@ -469,7 +469,7 @@ void ClientTimerActions( gentity_t *ent, int msec ) {
|
|||
if( bg_itemlist[client->ps.stats[STAT_PERSISTANT_POWERUP]].giTag == PW_AMMOREGEN ) {
|
||||
int w, max, inc, t, i;
|
||||
int weapList[]={WP_MACHINEGUN,WP_SHOTGUN,WP_GRENADE_LAUNCHER,WP_ROCKET_LAUNCHER,WP_LIGHTNING,WP_RAILGUN,WP_PLASMAGUN,WP_BFG,WP_NAILGUN,WP_PROX_LAUNCHER,WP_CHAINGUN};
|
||||
int weapCount = sizeof(weapList) / sizeof(int);
|
||||
int weapCount = ARRAY_LEN( weapList );
|
||||
//
|
||||
for (i = 0; i < weapCount; i++) {
|
||||
w = weapList[i];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue