Small fix on Matchmode Captain system

This commit is contained in:
Daniel Simoes 2002-04-07 12:57:36 +00:00
parent 0ee64e3271
commit fa9dbe5e75

View file

@ -5,8 +5,8 @@
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// //
// $Log$ // $Log$
// Revision 1.91 2002/04/07 12:49:10 slicer // Revision 1.92 2002/04/07 12:57:36 slicer
// Added 'teamname' command for MM, and tweaked the cvar system. // Small fix on Matchmode Captain system
// //
// Revision 1.90 2002/04/07 03:22:48 jbravo // Revision 1.90 2002/04/07 03:22:48 jbravo
// Tweaks and crashbug fixes // Tweaks and crashbug fixes
@ -896,9 +896,11 @@ void SetTeam( gentity_t *ent, char *s )
switch(ent->client->pers.captain) { switch(ent->client->pers.captain) {
case TEAM_RED: case TEAM_RED:
trap_Cvar_Set("g_RQ3_team1ready", "0"); trap_Cvar_Set("g_RQ3_team1ready", "0");
ent->client->pers.captain = TEAM_FREE;
break; break;
case TEAM_BLUE: case TEAM_BLUE:
trap_Cvar_Set("g_RQ3_team2ready", "0"); trap_Cvar_Set("g_RQ3_team2ready", "0");
ent->client->pers.captain = TEAM_FREE;
break; break;
default: default:
break; break;