From c4ed7807cb8fcde59280038cc271df1891b03b3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bokros=20B=C3=A1lint?= Date: Sat, 14 May 2016 13:11:10 +0200 Subject: [PATCH] Simplified isSteppable in Gate --- cicaprojekt/Gate.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cicaprojekt/Gate.java b/cicaprojekt/Gate.java index 265bb58..6eb4faa 100644 --- a/cicaprojekt/Gate.java +++ b/cicaprojekt/Gate.java @@ -26,10 +26,7 @@ public class Gate extends Tile { @Override public boolean isSteppable() { - if (open) - return true; - - return false; + return open; } public boolean isOpen() {