[iortcw] 14/89: MP: Fix unused variable warning

Simon McVittie smcv at debian.org
Fri Sep 8 10:44:16 UTC 2017


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to tag 1.51b
in repository iortcw.

commit eaedb55733a0adb4974061541ae32dcae726a5ba
Author: MAN-AT-ARMS <M4N4T4RMS at gmail.com>
Date:   Tue Jun 13 14:23:06 2017 -0400

    MP: Fix unused variable warning
---
 MP/code/game/g_cmds.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/MP/code/game/g_cmds.c b/MP/code/game/g_cmds.c
index 10a03f4..0d736a3 100644
--- a/MP/code/game/g_cmds.c
+++ b/MP/code/game/g_cmds.c
@@ -1425,7 +1425,6 @@ void Cmd_CallVote_f( gentity_t *ent ) {
 	int i;
 	char arg1[MAX_STRING_TOKENS];
 	char arg2[MAX_STRING_TOKENS];
-	char cleanName[64];    // JPW NERVE
 	int mask = 0;
 
 	if ( !g_voteFlags.integer ) {
@@ -1571,7 +1570,9 @@ void Cmd_CallVote_f( gentity_t *ent ) {
 #if 0
 // JPW NERVE
 	} else if ( !Q_stricmp( arg1,"kick" ) ) {
-		int i,kicknum = MAX_CLIENTS;
+		int i, kicknum = MAX_CLIENTS;
+		char cleanName[64];    // JPW NERVE
+		
 		for ( i = 0; i < MAX_CLIENTS; i++ ) {
 			if ( level.clients[i].pers.connected != CON_CONNECTED ) {
 				continue;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/iortcw.git



More information about the Pkg-games-commits mailing list