summaryrefslogtreecommitdiffstats
path: root/core/src/ch
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-31 23:00:17 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-31 23:00:17 +0100
commit80fe0d01b9690a5b302393c96fba72092b43fc2b (patch)
treec81a525c3c8df71e0e173d305e7eb702892a1ebc /core/src/ch
parent246baa4946d2247a90f6a62f9683a2b103bea52c (diff)
downloadRustAndDust-80fe0d01b9690a5b302393c96fba72092b43fc2b.zip
RustAndDust-80fe0d01b9690a5b302393c96fba72092b43fc2b.tar.gz
Factory: forgot to update getNewTile(...)
Diffstat (limited to 'core/src/ch')
-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;
}
}