diff options
author | Roman Tetelman <kevlarman@gmail.com> | 2009-10-03 12:20:16 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:15:52 +0000 |
commit | 2aca28abc09554d5517d0d088c0976435858eac8 (patch) | |
tree | 7bf179a8c176be19bd342bb0d89299465861297b /src | |
parent | 331a87a0574a49acdd820fe5985f27522be340e3 (diff) |
* it's no longer possible to callteamvote admitdefeat after having passed
said vote (fixes #15)
Diffstat (limited to 'src')
-rw-r--r-- | src/game/g_cmds.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index 5bad0553..422a25a3 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -1367,6 +1367,12 @@ void Cmd_CallTeamVote_f( gentity_t *ent ) } else if( !Q_stricmp( arg1, "admitdefeat" ) ) { + if( team == level.surrenderTeam ) + { + trap_SendServerCommand( ent-g_entities, "print \"You have already surrendered\n\""); + return; + } + Com_sprintf( level.teamVoteString[ cs_offset ], sizeof( level.teamVoteString[ cs_offset ] ), "admitdefeat %i", team ); Com_sprintf( level.teamVoteDisplayString[ cs_offset ], |