Index: src/game/g_cmds.c =================================================================== --- src/game/g_cmds.c (revision 824) +++ src/game/g_cmds.c (working copy) @@ -978,7 +978,7 @@ return; } - if( ent->client->sess.sessionTeam == TEAM_SPECTATOR ) + if( ent->client->pers.teamSelection == PTE_NONE ) { trap_SendServerCommand( ent-g_entities, "print \"Not allowed to call a vote as spectator\n\"" ); return; @@ -1144,7 +1144,7 @@ return; } - if( ent->client->ps.stats[ STAT_PTEAM ] == PTE_NONE ) + if( ent->client->pers.teamSelection == PTE_NONE ) { trap_SendServerCommand( ent-g_entities, "print \"Not allowed to vote as spectator\n\"" ); return; @@ -1213,7 +1213,7 @@ return; } - if( ent->client->ps.stats[ STAT_PTEAM ] == PTE_NONE ) + if( ent->client->pers.teamSelection == PTE_NONE ) { trap_SendServerCommand( ent-g_entities, "print \"Not allowed to call a vote as spectator\n\"" ); return; @@ -1393,7 +1393,7 @@ return; } - if( ent->client->ps.stats[ STAT_PTEAM ] == PTE_NONE ) + if( ent->client->pers.teamSelection == PTE_NONE ) { trap_SendServerCommand( ent-g_entities, "print \"Not allowed to vote as spectator\n\"" ); return;