Restore cheat throw visuals
authorJBM <jbm@codingame.com>
Thu, 28 May 2020 09:44:00 +0000 (11:44 +0200)
committerJBM <jbm@codingame.com>
Thu, 28 May 2020 11:35:37 +0000 (13:35 +0200)
I don't remember when we lost them, I don't test them
often enough, it seems.

config/statement_en.html
src/main/java/com/codingame/game/Referee.java

index d5d7140..b1efb7c 100644 (file)
      <p>
        This draft's last change is:
        <strong>
-         more debug utility.
+         restore cheat throw visuals.
        </strong>
      </p>
    </div>
index e741cd1..6e291be 100644 (file)
@@ -123,7 +123,7 @@ public class Referee extends AbstractReferee {
                     disqualify(player, "CHEAT", "cheated.  Banning account.");
                     disqual = true;
                 }
-                else if (player.stoneThrow > 0) {
+                if (player.stoneThrow != 0) {
                     player.view.animateStones(player.stoneThrow);
                     player.view.updateStoneCounter();
                 }