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

View File

@ -20,7 +20,9 @@ public class Wall extends Tile {
@Override @Override
public boolean isSteppable() { public boolean isSteppable() {
return sg != null; if(sg != null)
return sg.isOpen();
return false;
} }
public void clearStargate() { public void clearStargate() {