Wall now is steppable only if the stargate is open

This commit is contained in:
Bokros Bálint
2016-05-14 23:22:40 +02:00
parent b92f164948
commit ce5d34232c
+3 -1
View File
@@ -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() {