From: JBM Date: Thu, 28 May 2020 09:44:00 +0000 (+0200) Subject: Restore cheat throw visuals X-Git-Url: https://troll.desast.re/troll.git/commitdiff_plain/53ea2acca5ca4aed78a3ba1b428ce37486fdc2e4?ds=sidebyside Restore cheat throw visuals I don't remember when we lost them, I don't test them often enough, it seems. --- diff --git a/config/statement_en.html b/config/statement_en.html index d5d7140..b1efb7c 100644 --- a/config/statement_en.html +++ b/config/statement_en.html @@ -137,7 +137,7 @@

This draft's last change is: - more debug utility. + restore cheat throw visuals.

diff --git a/src/main/java/com/codingame/game/Referee.java b/src/main/java/com/codingame/game/Referee.java index e741cd1..6e291be 100644 --- a/src/main/java/com/codingame/game/Referee.java +++ b/src/main/java/com/codingame/game/Referee.java @@ -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(); }