diff options
Diffstat (limited to 'src/game/g_cmds.c')
-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 ], |