Index: src/game/g_cmds.c =================================================================== --- src/game/g_cmds.c (revision 823) +++ src/game/g_cmds.c (working copy) @@ -1144,7 +1144,7 @@ return; } - if( ent->client->ps.stats[ STAT_PTEAM ] == PTE_NONE ) + if( ent->client->sess.sessionTeam == TEAM_SPECTATOR ) { 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->sess.sessionTeam == TEAM_SPECTATOR ) { 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->sess.sessionTeam == TEAM_SPECTATOR ) { trap_SendServerCommand( ent-g_entities, "print \"Not allowed to vote as spectator\n\"" ); return;