summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/tankontank/game/battles/Factory.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/src/ch/asynk/tankontank/game/battles/Factory.java b/core/src/ch/asynk/tankontank/game/battles/Factory.java
index 332aa27..a398de6 100644
--- a/core/src/ch/asynk/tankontank/game/battles/Factory.java
+++ b/core/src/ch/asynk/tankontank/game/battles/Factory.java
@@ -158,8 +158,10 @@ public class Factory implements Board.TileBuilder, Disposable
return u;
}
- public Hex getNewTile(float x, float y, int col, int row)
+ public Hex getNewTile(float x, float y, int col, int row, boolean offmap)
{
- return new Hex(x, y, col, row, tileOverlaysAtlas);
+ Hex hex = new Hex(x, y, col, row, tileOverlaysAtlas);
+ if (offmap) hex.terrain = Hex.Terrain.OFFMAP;
+ return hex;
}
}