summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTony J. White <tjw@tjw.org>2007-03-26 04:32:20 +0000
committerTony J. White <tjw@tjw.org>2007-03-26 04:32:20 +0000
commit527094c03ee3aa2a1eb4da9e6c6ce0d5f5b2aff6 (patch)
treed7adbce1d50814f60f82b527efd916bd2878c223 /src
parent571bbb40853abd04a351b91921881bf5b5275f61 (diff)
* (bug 3071) fixed new teamvote typos and stopped using ps.stats[ STAT_PTEAM ]
for consistency
Diffstat (limited to 'src')
-rw-r--r--src/game/g_cmds.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c
index 4ffd1144..ea7ed83f 100644
--- a/src/game/g_cmds.c
+++ b/src/game/g_cmds.c
@@ -1254,15 +1254,15 @@ void Cmd_CallTeamVote_f( gentity_t *ent )
int clientNum = -1;
char name[ MAX_NETNAME ];
- if( ent->client->pers.teamSelection == PTE_NONE )
+ team = ent->client->pers.teamSelection;
+
+ if( team == PTE_NONE )
{
trap_SendServerCommand( ent-g_entities,
"print \"Not allowed to call a team vote as a spectator\n\"" );
return;
}
- team = ent->client->ps.stats[ STAT_PTEAM ];
-
if( team == PTE_HUMANS )
cs_offset = 0;
else if( team == PTE_ALIENS )
@@ -1346,7 +1346,7 @@ void Cmd_CallTeamVote_f( gentity_t *ent )
if( clientNum == -1 )
{
trap_SendServerCommand( ent-g_entities,
- "print \"callvote: invalid player\n\"" );
+ "print \"callteamvote: invalid player\n\"" );
return;
}
@@ -1372,14 +1372,14 @@ void Cmd_CallTeamVote_f( gentity_t *ent )
if( clientNum == -1 )
{
trap_SendServerCommand( ent-g_entities,
- "print \"callvote: invalid player\n\"" );
+ "print \"callteamvote: invalid player\n\"" );
return;
}
if( level.clients[ clientNum ].pers.denyBuild )
{
trap_SendServerCommand( ent-g_entities,
- "print \"callvote: player already lost building rights\n\"" );
+ "print \"callteamvote: player already lost building rights\n\"" );
return;
}
@@ -1401,14 +1401,14 @@ void Cmd_CallTeamVote_f( gentity_t *ent )
if( clientNum == -1 )
{
trap_SendServerCommand( ent-g_entities,
- "print \"callvote: invalid player\n\"" );
+ "print \"callteamvote: invalid player\n\"" );
return;
}
if( !level.clients[ clientNum ].pers.denyBuild )
{
trap_SendServerCommand( ent-g_entities,
- "print \"callvote: player already has building rights\n\"" );
+ "print \"callteamvote: player already has building rights\n\"" );
return;
}
@@ -1431,7 +1431,7 @@ void Cmd_CallTeamVote_f( gentity_t *ent )
trap_SendServerCommand( ent-g_entities, "print \"Invalid vote string\n\"" );
trap_SendServerCommand( ent-g_entities,
"print \"Valid team vote commands are: "
- "kick, denybuild, allowbuild and surrender\n\"" );
+ "kick, denybuild, allowbuild and admitdefeat\n\"" );
return;
}
ent->client->pers.voteCount++;