summaryrefslogtreecommitdiff
path: root/src/game/g_cmds.c
diff options
context:
space:
mode:
authorMikko Tiusanen <ams@daug.net>2015-01-25 23:47:16 +0200
committerMikko Tiusanen <ams@daug.net>2015-01-25 23:47:16 +0200
commit56382169c394bc6a1e63a91fdd59b58ac3974986 (patch)
treeca7b9e762d4dfc7a11bc01e7dcbe072f465dc343 /src/game/g_cmds.c
parent67948a489d2a07b94b6d5a3eeb2b642146865a61 (diff)
Fixed compiler warnings in all game, cgame sources.
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r--src/game/g_cmds.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index 8595b60..eab8631 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -952,7 +952,7 @@ static qboolean G_SayTo( gentity_t *ent, gentity_t *other, saymode_t mode, const
}
trap_SendServerCommand( other-g_entities, va( "chat %d %d \"%s\"",
- ent ? ent-g_entities : -1,
+ ent ? (int)(ent-g_entities) : -1,
mode,
message ) );
@@ -1187,12 +1187,12 @@ void Cmd_VSay_f( gentity_t *ent )
case VOICE_CHAN_LOCAL:
trap_SendServerCommand( -1, va(
"voice %d %d %d %d \"%s\"\n",
- ent-g_entities, vchan, cmdNum, trackNum, text ) );
+ (int)(ent-g_entities), vchan, cmdNum, trackNum, text ) );
break;
case VOICE_CHAN_TEAM:
G_TeamCommand( ent->client->pers.teamSelection, va(
"voice %d %d %d %d \"%s\"\n",
- ent-g_entities, vchan, cmdNum, trackNum, text ) );
+ (int)(ent-g_entities), vchan, cmdNum, trackNum, text ) );
break;
default:
break;
@@ -3826,7 +3826,7 @@ void Cmd_MyScore_f( gentity_t *ent )
return;
}
l = G_admin_find_level_for_score( ent->client->pers.admin->score );
- if ( n = G_admin_level_next( G_admin_level( l->level ) ) ) {
+ if (( n = G_admin_level_next( G_admin_level( l->level ) ) )) {
ADMP( va( "^7Level %d (%s^7) total score earned: %d next level: %d\n",
l->level, G_admin_level( l->level )->name, ent->client->pers.admin->score, n->score ) );
} else {