Refactoring patch by DevHC

This commit is contained in:
Thilo Schulz 2011-03-05 19:20:37 +00:00
parent 21668c0616
commit fef4d12d68
31 changed files with 60 additions and 98 deletions

View file

@ -1258,7 +1258,7 @@ commandDef_t commandList[] =
{"orbit", &Script_Orbit} // group/name
};
int scriptCommandCount = sizeof(commandList) / sizeof(commandDef_t);
int scriptCommandCount = ARRAY_LEN(commandList);
void Item_RunScript(itemDef_t *item, const char *s) {
@ -3192,7 +3192,7 @@ static bind_t g_bindings[] =
};
static const int g_bindCount = sizeof(g_bindings) / sizeof(bind_t);
static const int g_bindCount = ARRAY_LEN(g_bindings);
#ifndef MISSIONPACK
static configcvar_t g_configcvars[] =