From fd18cc72d076ed4e94abc862f3b4b37e8a8e9db1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bokros=20B=C3=A1lint?= Date: Sat, 14 May 2016 13:09:25 +0200 Subject: [PATCH] Simplified onEntry in Gate --- cicaprojekt/Gate.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cicaprojekt/Gate.java b/cicaprojekt/Gate.java index 624f5ff..265bb58 100644 --- a/cicaprojekt/Gate.java +++ b/cicaprojekt/Gate.java @@ -14,10 +14,7 @@ public class Gate extends Tile { public void onEntry(PlayerBase playerBase) { super.onEntry(playerBase); - if (open) { - playerBase.setCurrentTile(this); - } else - return; + if (open) playerBase.setCurrentTile(this); } public void onExit(PlayerBase playerBase) throws IllegalStateException {