From 9f6c6aca3610a44c0806639f124e91209cf14396 Mon Sep 17 00:00:00 2001 From: EpicKnarvik97 Date: Thu, 23 Apr 2020 10:39:09 +0200 Subject: [PATCH] Fikser vinning av spillet. Closes #71 --- src/main/java/inf112/fiasko/roborally/objects/Phase.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/inf112/fiasko/roborally/objects/Phase.java b/src/main/java/inf112/fiasko/roborally/objects/Phase.java index d6d2dac..4547cf0 100644 --- a/src/main/java/inf112/fiasko/roborally/objects/Phase.java +++ b/src/main/java/inf112/fiasko/roborally/objects/Phase.java @@ -209,6 +209,11 @@ public class Phase { if (game != null) { game.setWinningPlayerName(player.getName()); game.setGameState(GameState.GAME_IS_WON); + try { + Thread.sleep(1000 * cycleDelay); + } catch (InterruptedException e) { + e.printStackTrace(); + } } } }