now Gaps that are converted to Fields show up correctly
This commit is contained in:
@ -25,6 +25,9 @@ public class Game {
|
||||
Field field = new Field();
|
||||
Tile callertile = caller.getCurrentTile();
|
||||
|
||||
field.setX(callertile.getX());
|
||||
field.setY(callertile.getY());
|
||||
|
||||
field.setAdajacentTile(caller.getCurrentTile().getAdjacentTile(Direction.NORTH), Direction.NORTH);
|
||||
callertile.getAdjacentTile(Direction.NORTH).setAdajacentTile(field, Direction.SOUTH);
|
||||
|
||||
@ -37,6 +40,8 @@ public class Game {
|
||||
field.setAdajacentTile(caller.getCurrentTile().getAdjacentTile(Direction.EAST), Direction.EAST);
|
||||
callertile.getAdjacentTile(Direction.EAST).setAdajacentTile(field, Direction.WEST);
|
||||
|
||||
display.gapMagic((Gap)callertile, field, dungeon.getMapWidth());
|
||||
|
||||
Game.instance.updateDisplay();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user