diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-09-23 20:41:51 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-09-23 20:41:51 +0200 |
commit | cab965d2ab476346be8ae2c3ba7f22e5207e6fbe (patch) | |
tree | 88d71c8484960df2437eaf144743a7f24ec1a851 | |
parent | 37b44d0bbd370e3b71792759c43138e476cb871b (diff) | |
download | RustAndDust-cab965d2ab476346be8ae2c3ba7f22e5207e6fbe.zip RustAndDust-cab965d2ab476346be8ae2c3ba7f22e5207e6fbe.tar.gz |
update debug to show offmap tiles
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Map.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java index c15dce5..3418d56 100644 --- a/core/src/ch/asynk/tankontank/game/Map.java +++ b/core/src/ch/asynk/tankontank/game/Map.java @@ -78,14 +78,15 @@ public abstract class Map extends Board t = Hex.Terrain.TOWN; } else if (t == Hex.Terrain.TOWN) { o = Hex.FOG; + t = Hex.Terrain.OFFMAP; + } else if (t == Hex.Terrain.OFFMAP) { + o = Hex.FOG; roadsOn = true; } } - boolean evenRow = true; for (int j = 0; j < cfg.rows; j++) { - int c = (evenRow ? cfg.cols : cfg.cols - 1); - for (int i = 0; i < c; i++) { + for (int i = 0; i < cfg.cols; i++) { Hex hex = getHex(i,j); clearOverlaysOn(i, j); if (hexOn) { @@ -96,7 +97,6 @@ public abstract class Map extends Board enableOverlayOn(i, j, o, true); } } - evenRow = !evenRow; } } } |