From c7e46ff3045f82f181b7e55008c82e5a868a3385 Mon Sep 17 00:00:00 2001 From: kremsy Date: Sat, 1 Feb 2014 14:58:56 +0100 Subject: [PATCH] fix specqueue --- application/plugins/QueuePlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/plugins/QueuePlugin.php b/application/plugins/QueuePlugin.php index 92672403..a14dfcbf 100644 --- a/application/plugins/QueuePlugin.php +++ b/application/plugins/QueuePlugin.php @@ -282,7 +282,7 @@ class QueuePlugin implements CallbackListener, CommandListener, ManialinkPageAns * @param Player $player */ private function forcePlayerToPlay(Player $player) { - if ($this->maniaControl->client->getMaxPlayers()['CurrentValue'] > count($this->maniaControl->playerManager->players)) { + if ($this->maniaControl->client->getMaxPlayers()['CurrentValue'] > (count($this->maniaControl->playerManager->players) - count($this->spectators))) { $this->maniaControl->client->forceSpectator($player->login, 2); $this->maniaControl->client->forceSpectator($player->login, 0); if (isset($this->spectators[$player->login])) {