summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}
}
}