From e8329d7cba78172be907c53205b67a9ad70ca4ed Mon Sep 17 00:00:00 2001 From: Tzupy Date: Fri, 21 Dec 2018 15:06:06 +0200 Subject: [PATCH] Fixed a small bug where the last push message didn't appear in the summary before the deadlock occurred --- src/main/java/com/codingame/game/Referee.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/codingame/game/Referee.java b/src/main/java/com/codingame/game/Referee.java index aad5906..31e6e7e 100644 --- a/src/main/java/com/codingame/game/Referee.java +++ b/src/main/java/com/codingame/game/Referee.java @@ -301,6 +301,8 @@ public void gameTurn(int turn) { } if (numStalePushTurns >= maxStaleTurns) { + //allows the last push message to be displayed in the summary + forceAnimationFrame(); gameManager.addToGameSummary(GameManager.formatErrorMessage("The game ended in a deadlock!")); forceGameEnd(); }