diff --git a/WEB/Model/UserModel.php b/WEB/Model/UserModel.php index 3c6afbd6..4592b5a1 100644 --- a/WEB/Model/UserModel.php +++ b/WEB/Model/UserModel.php @@ -72,10 +72,11 @@ class UserModel } $this->utilisateur_gateway->addToQueue($_SESSION['utilisateur'],$partie); if ($this->utilisateur_gateway->queueFilled()) + { echo "Partie is launched" - // $this->launchGame(); + /*$this->launchGame();*/ + } } - public function logout() { $_SESSION['role'] = 'visitor'; diff --git a/WEB/View/src/pages/Main.php b/WEB/View/src/pages/Main.php index 5a5566ff..c256f1cf 100644 --- a/WEB/View/src/pages/Main.php +++ b/WEB/View/src/pages/Main.php @@ -59,7 +59,7 @@