Fix various warnings
This commit is contained in:
1 parent
549b686e22
commit
f976711fb4
58 files changed
+384
-425
No files matched your search
@@ -354,11 +354,10 @@ Controls_InitCvars
|
||||
*/
|
||||
static void Controls_InitCvars( void )
|
||||
{
|
||||
int i;
|
||||
configcvar_t* cvarptr;
|
||||
|
||||
cvarptr = g_configcvars;
|
||||
for (i=0; ;i++,cvarptr++)
|
||||
for (;;cvarptr++)
|
||||
{
|
||||
if (!cvarptr->name)
|
||||
break;
|
||||
@@ -383,10 +382,9 @@ Controls_GetCvarDefault
|
||||
static float Controls_GetCvarDefault( char* name )
|
||||
{
|
||||
configcvar_t* cvarptr;
|
||||
int i;
|
||||
|
||||
cvarptr = g_configcvars;
|
||||
for (i=0; ;i++,cvarptr++)
|
||||
for (;;cvarptr++)
|
||||
{
|
||||
if (!cvarptr->name)
|
||||
return (0);
|
||||
@@ -406,10 +404,9 @@ Controls_GetCvarValue
|
||||
static float Controls_GetCvarValue( char* name )
|
||||
{
|
||||
configcvar_t* cvarptr;
|
||||
int i;
|
||||
|
||||
cvarptr = g_configcvars;
|
||||
for (i=0; ;i++,cvarptr++)
|
||||
for (;;cvarptr++)
|
||||
{
|
||||
if (!cvarptr->name)
|
||||
return (0);
|
||||
@@ -788,7 +785,6 @@ Controls_GetConfig
|
||||
*/
|
||||
static void Controls_GetConfig( void )
|
||||
{
|
||||
int i;
|
||||
int twokeys[2];
|
||||
bind_t* bindptr;
|
||||
|
||||
@@ -796,7 +792,7 @@ static void Controls_GetConfig( void )
|
||||
bindptr = g_bindings;
|
||||
|
||||
// iterate each command, get its numeric binding
|
||||
for (i=0; ;i++,bindptr++)
|
||||
for (;;bindptr++)
|
||||
{
|
||||
if (!bindptr->label)
|
||||
break;
|
||||
@@ -824,14 +820,13 @@ Controls_SetConfig
|
||||
*/
|
||||
static void Controls_SetConfig( void )
|
||||
{
|
||||
int i;
|
||||
bind_t* bindptr;
|
||||
|
||||
// set the bindings from the local store
|
||||
bindptr = g_bindings;
|
||||
|
||||
// iterate each command, get its numeric binding
|
||||
for (i=0; ;i++,bindptr++)
|
||||
for (;;bindptr++)
|
||||
{
|
||||
if (!bindptr->label)
|
||||
break;
|
||||
@@ -867,14 +862,13 @@ Controls_SetDefaults
|
||||
*/
|
||||
static void Controls_SetDefaults( void )
|
||||
{
|
||||
int i;
|
||||
bind_t* bindptr;
|
||||
|
||||
// set the bindings from the local store
|
||||
bindptr = g_bindings;
|
||||
|
||||
// iterate each command, set its default binding
|
||||
for (i=0; ;i++,bindptr++)
|
||||
for (;;bindptr++)
|
||||
{
|
||||
if (!bindptr->label)
|
||||
break;
|
||||
@@ -901,7 +895,6 @@ Controls_MenuKey
|
||||
static sfxHandle_t Controls_MenuKey( int key )
|
||||
{
|
||||
int id;
|
||||
int i;
|
||||
qboolean found;
|
||||
bind_t* bindptr;
|
||||
found = qfalse;
|
||||
@@ -949,7 +942,7 @@ static sfxHandle_t Controls_MenuKey( int key )
|
||||
{
|
||||
// remove from any other bind
|
||||
bindptr = g_bindings;
|
||||
for (i=0; ;i++,bindptr++)
|
||||
for (;;bindptr++)
|
||||
{
|
||||
if (!bindptr->label)
|
||||
break;
|
||||
@@ -968,7 +961,7 @@ static sfxHandle_t Controls_MenuKey( int key )
|
||||
// assign key to local store
|
||||
id = ((menucommon_s*)(s_controls.menu.items[s_controls.menu.cursor]))->id;
|
||||
bindptr = g_bindings;
|
||||
for (i=0; ;i++,bindptr++)
|
||||
for (;;bindptr++)
|
||||
{
|
||||
if (!bindptr->label)
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user