summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorM. Kristall <mkpdev@gmail.com>2009-10-15 22:40:25 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:16:51 +0000
commit85b7a9aaeba95a0564d26be1f25c94ebb6c9e6c6 (patch)
tree857fd5667248916ba187ebb3935c03d6f81d9b70 /src/game
parent53d1ccdde68e4573b83d14d0cb319c1e265cf043 (diff)
* Fix most votes not executing
Diffstat (limited to 'src/game')
-rw-r--r--src/game/g_cmds.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index 33a572be..f95dab1e 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -1041,7 +1041,6 @@ void Cmd_CallVote_f( gentity_t *ent )
return;
}
- trap_Argv( 1, vote, sizeof( vote ) );
// kick, mute, unmute, denybuild, allowbuild
if( !Q_stricmp( vote, "kick" ) ||
!Q_stricmp( vote, "mute" ) || !Q_stricmp( vote, "unmute" ) ||
@@ -1104,7 +1103,7 @@ void Cmd_CallVote_f( gentity_t *ent )
}
Com_sprintf( level.voteString[ team ], sizeof( level.voteString[ team ] ),
- "ban %s \"1s%s\" vote kick", level.clients[ clientNum ].pers.ip,
+ "!ban %s \"1s%s\" vote kick", level.clients[ clientNum ].pers.ip,
g_adminTempBan.string );
Com_sprintf( level.voteDisplayString[ team ],
sizeof( level.voteDisplayString[ team ] ),
@@ -1122,7 +1121,7 @@ void Cmd_CallVote_f( gentity_t *ent )
}
Com_sprintf( level.voteString[ team ], sizeof( level.voteString[ team ] ),
- "mute %d", clientNum );
+ "!mute %d", clientNum );
Com_sprintf( level.voteDisplayString[ team ],
sizeof( level.voteDisplayString[ team ] ),
"Mute player '%s'", name );
@@ -1137,7 +1136,7 @@ void Cmd_CallVote_f( gentity_t *ent )
}
Com_sprintf( level.voteString[ team ], sizeof( level.voteString[ team ] ),
- "unmute %d", clientNum );
+ "!unmute %d", clientNum );
Com_sprintf( level.voteDisplayString[ team ],
sizeof( level.voteDisplayString[ team ] ),
"Unmute player '%s'", name );
@@ -1237,7 +1236,7 @@ void Cmd_CallVote_f( gentity_t *ent )
}
Com_sprintf( level.voteString[ team ], sizeof( level.voteString[ team ] ),
- "denybuild %d", clientNum );
+ "!denybuild %d", clientNum );
Com_sprintf( level.voteDisplayString[ team ],
sizeof( level.voteDisplayString[ team ] ),
"Take away building rights from '%s'", name );
@@ -1252,7 +1251,7 @@ void Cmd_CallVote_f( gentity_t *ent )
}
Com_sprintf( level.voteString[ team ], sizeof( level.voteString[ team ] ),
- "allowbuild %d", clientNum );
+ "!allowbuild %d", clientNum );
Com_sprintf( level.voteDisplayString[ team ],
sizeof( level.voteDisplayString[ team ] ),
"Allow '%s' to build", name );