Fix spawning bug on team switch which occurred because of the stricter checking of whether players are allowed to spawn.