summaryrefslogtreecommitdiff
path: root/src/game/g_admin.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_admin.c
parent67948a489d2a07b94b6d5a3eeb2b642146865a61 (diff)
Fixed compiler warnings in all game, cgame sources.
Diffstat (limited to 'src/game/g_admin.c')
-rw-r--r--src/game/g_admin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c
index 6beac1c..34e8b20 100644
--- a/src/game/g_admin.c
+++ b/src/game/g_admin.c
@@ -1651,7 +1651,7 @@ qboolean G_admin_register( gentity_t *ent )
newLevel = oldLevel;
trap_SendConsoleCommand( EXEC_APPEND,
- va( "setlevel %d %d;", ent - g_entities, newLevel ) );
+ va( "setlevel %d %d;", (int)(ent - g_entities), newLevel ) );
AP( va( "print \"^3register: %s is now a %s nickname. Commands unlocked. ^2Congratulations!\n\"",
( newLevel == 0 && ent->client->pers.admin ) ?
@@ -2845,7 +2845,7 @@ static void ban_out( void *ban, char *str )
Com_sprintf( str,MAX_STRING_CHARS,
S_COLOR_CYAN "------------------------------"
- S_COLOR_CYAN "\n id: | %ld"
+ S_COLOR_CYAN "\n id: | %d"
S_COLOR_CYAN "\n Name: | %-*s"
S_COLOR_CYAN "\n IP: | %s%-15s"
S_COLOR_CYAN "\n Banner: | %s"