From ce5d34232c927d1159a21cce29241f51f989326c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bokros=20B=C3=A1lint?= Date: Sat, 14 May 2016 23:22:40 +0200 Subject: [PATCH] Wall now is steppable only if the stargate is open --- cicaprojekt/Wall.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cicaprojekt/Wall.java b/cicaprojekt/Wall.java index da83b70..ce8b167 100644 --- a/cicaprojekt/Wall.java +++ b/cicaprojekt/Wall.java @@ -20,7 +20,9 @@ public class Wall extends Tile { @Override public boolean isSteppable() { - return sg != null; + if(sg != null) + return sg.isOpen(); + return false; } public void clearStargate() {