Fix compiler warnings (issue #4).
This commit is contained in:
1 parent
3b81859727
commit
a8a23e674c
5 files changed
+12
-12
No files matched your search
+6
-8
@@ -4255,7 +4255,7 @@ qboolean G_admin_pause( gentity_t *ent, int skiparg )
|
||||
}
|
||||
if( G_SayArgc() != 2 + skiparg )
|
||||
{
|
||||
ADMP( va( "^3!pause: ^7usage: ^7(^5name|slot|*^7)\n", cmd, cmd ) );
|
||||
ADMP( va( "^3!%s: ^7usage: !%s ^7(^5name|slot|*^7)\n", cmd, cmd ) );
|
||||
return qfalse;
|
||||
}
|
||||
|
||||
@@ -4429,7 +4429,7 @@ qboolean G_admin_buildlog( gentity_t *ent, int skiparg )
|
||||
gentity_t *builder = NULL;
|
||||
int skip = 0, start = 0, lastID = -1, firstID = -1, i, len, matchlen = 0;
|
||||
pTeam_t team = PTE_NONE;
|
||||
char startbuf[ 12 ], message[ MAX_STRING_CHARS ], *teamchar;
|
||||
char message[ MAX_STRING_CHARS ], *teamchar;
|
||||
char *name, *action, *buildablename, markstring[ MAX_STRING_CHARS ];
|
||||
if( !g_buildLogMaxLength.integer )
|
||||
{
|
||||
@@ -4457,7 +4457,7 @@ qboolean G_admin_buildlog( gentity_t *ent, int skiparg )
|
||||
break;
|
||||
case '-':
|
||||
{
|
||||
int value;
|
||||
//int value;
|
||||
//if( ( value = G_ClientNumbersFromString( argbuf + 1, pids, MAX_CLIENTS ) ) != 1 )
|
||||
if( G_ClientNumbersFromString( argbuf + 1, pids ) != 1 )
|
||||
{
|
||||
@@ -4673,12 +4673,12 @@ qboolean G_admin_revert( gentity_t *ent, int skiparg )
|
||||
break;
|
||||
case '-':
|
||||
{
|
||||
int value;
|
||||
//int value;
|
||||
//if( ( value = G_ClientNumbersFromString( arg + 1, pids, MAX_CLIENTS ) ) != 1 )
|
||||
if( G_ClientNumbersFromString( arg + 1, pids ) != 1 )
|
||||
{
|
||||
//G_MatchOnePlayer( pids, value, err, sizeof( err ) );
|
||||
+ G_MatchOnePlayer( pids, err, sizeof( err ) );
|
||||
G_MatchOnePlayer( pids, err, sizeof( err ) );
|
||||
ADMP( va( "^3!revert: ^7%s\n", err ));
|
||||
return qfalse;
|
||||
}
|
||||
@@ -5154,10 +5154,8 @@ qboolean G_admin_drop( gentity_t *ent, int skiparg )
|
||||
int pids[ MAX_CLIENTS ];
|
||||
char name[ MAX_NAME_LENGTH ], err[ MAX_STRING_CHARS ];
|
||||
int minargc;
|
||||
gentity_t *vic;
|
||||
|
||||
|
||||
minargc = 2 + skiparg;
|
||||
minargc = 2 + skiparg;
|
||||
|
||||
if( G_SayArgc() < minargc )
|
||||
{
|
||||
|
||||
@@ -4286,7 +4286,7 @@ int G_CountBuildLog( void )
|
||||
ptr = ptr->next;
|
||||
else
|
||||
{
|
||||
while( mark = ptr->next )
|
||||
while( ( mark = ptr->next ) )
|
||||
{
|
||||
ptr->next = ptr->next->marked;
|
||||
G_Free( mark );
|
||||
|
||||
+1
-1
@@ -1391,7 +1391,7 @@ void Cmd_CallVote_f( gentity_t *ent )
|
||||
char arg2[ MAX_STRING_TOKENS ];
|
||||
char arg3[ MAX_STRING_TOKENS ];
|
||||
int clientNum = -1;
|
||||
char name[ MAX_NETNAME ], name2[ MAX_NETNAME ];
|
||||
char name[ MAX_NETNAME ];
|
||||
char *arg2plus;
|
||||
char nullstring[] = "";
|
||||
char message[ MAX_STRING_CHARS ];
|
||||
|
||||
@@ -920,6 +920,7 @@ qboolean G_RadiusDamage( vec3_t origin, gentity_t *attacker, float damage, floa
|
||||
gentity_t *ignore, int mod );
|
||||
qboolean G_SelectiveRadiusDamage( vec3_t origin, gentity_t *attacker, float damage, float radius,
|
||||
gentity_t *ignore, int mod, int team );
|
||||
void G_Knockback( gentity_t *targ, vec3_t dir, int knockback );
|
||||
void body_die( gentity_t *self, gentity_t *inflictor, gentity_t *attacker, int damage, int meansOfDeath );
|
||||
void AddScore( gentity_t *ent, int score );
|
||||
|
||||
@@ -1029,6 +1030,7 @@ qboolean G_FilterPacket( char *from );
|
||||
void FireWeapon( gentity_t *ent );
|
||||
void FireWeapon2( gentity_t *ent );
|
||||
void FireWeapon3( gentity_t *ent );
|
||||
void Blow_up( gentity_t *ent );
|
||||
|
||||
//
|
||||
// g_cmds.c
|
||||
|
||||
+2
-2
@@ -1690,10 +1690,10 @@ void ExitLevel( void )
|
||||
|
||||
buildHistory_t *tmp, *mark;
|
||||
|
||||
while( tmp = level.buildHistory )
|
||||
while( ( tmp = level.buildHistory ) )
|
||||
{
|
||||
level.buildHistory = level.buildHistory->next;
|
||||
while( mark = tmp )
|
||||
while( ( mark = tmp ) )
|
||||
{
|
||||
tmp = tmp->marked;
|
||||
G_Free( mark );
|
||||
|
||||
Reference in new issue
Block a user