Fixed remaining errors with teleporting

closes #6
This commit is contained in:
Bokros Bálint
2016-05-13 20:27:05 +02:00
parent d14ce39ee1
commit e3ce590d1d
2 changed files with 9 additions and 12 deletions

View File

@ -13,7 +13,7 @@ public class Wall extends Tile {
stargate.getCurrentWall().clearStargate();
if (sg == null) {
sg = stargate;
sg.setCurrentWall(this);
sg.setCurrentWall(this, direction);
Game.instance.updateDisplay();
}
else
@ -30,7 +30,7 @@ public class Wall extends Tile {
public void clearStargate() {
if(sg != null) {
sg.setCurrentWall(null);
sg.setCurrentWall(null, null);
sg = null;
}
}