diff options
author | M. Kristall <mkpdev@gmail.com> | 2010-03-01 21:18:49 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:17:29 +0000 |
commit | 24d30c07f57f9f0ace0c945c7c41a38188844d2e (patch) | |
tree | 977e55fbd9c77df9e8fe5e1e07daf2907d913029 /src/game/g_cmds.c | |
parent | 0d5105c697d871b59898ca49023314571fb8dbaf (diff) |
* Prevent people from reconnecting so they can call more votes
* Remove a few unused variables and an unused function
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r-- | src/game/g_cmds.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index 431434c2..5f574f20 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -986,7 +986,7 @@ void Cmd_CallVote_f( gentity_t *ent ) level.voteThreshold[ team ] = 50; if( g_voteLimit.integer > 0 && - ent->client->pers.voteCount >= g_voteLimit.integer && + ent->client->pers.namelog->voteCount >= g_voteLimit.integer && !G_admin_permission( ent, ADMF_NO_VOTE_LIMIT ) ) { trap_SendServerCommand( ent-g_entities, va( @@ -1257,7 +1257,7 @@ void Cmd_CallVote_f( gentity_t *ent ) trap_SetConfigstring( CS_VOTE_STRING + team, level.voteDisplayString[ team ] ); - ent->client->pers.voteCount++; + ent->client->pers.namelog->voteCount++; ent->client->pers.vote[ team ] = qtrue; G_Vote( ent, team, qtrue ); } |