summaryrefslogtreecommitdiffstats
path: root/core/src/ch
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-09-23 20:41:51 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-09-23 20:41:51 +0200
commitcab965d2ab476346be8ae2c3ba7f22e5207e6fbe (patch)
tree88d71c8484960df2437eaf144743a7f24ec1a851 /core/src/ch
parent37b44d0bbd370e3b71792759c43138e476cb871b (diff)
downloadRustAndDust-cab965d2ab476346be8ae2c3ba7f22e5207e6fbe.zip
RustAndDust-cab965d2ab476346be8ae2c3ba7f22e5207e6fbe.tar.gz
update debug to show offmap tiles
Diffstat (limited to 'core/src/ch')
-rw-r--r--core/src/ch/asynk/tankontank/game/Map.java8
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;
}
}
}