From 951c0fecbfebb70ca19356c4e9fb7f6daf9061c2 Mon Sep 17 00:00:00 2001 From: Jason Long Date: Fri, 20 Jun 2014 12:21:52 -0400 Subject: [PATCH] api: fix use of hi-bits in stadium-handling code --- src/micropolisj/engine/MapScanner.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/micropolisj/engine/MapScanner.java b/src/micropolisj/engine/MapScanner.java index a7ccd94..e36c86c 100644 --- a/src/micropolisj/engine/MapScanner.java +++ b/src/micropolisj/engine/MapScanner.java @@ -943,12 +943,13 @@ class MapScanner extends TileBehavior for (int y = 0; y < 4; y++) { - for (int x = 0; x < 4; x++, zoneBase++) + for (int x = 0; x < 4; x++) { - city.setTile(xpos - 1 + x, ypos - 1 + y, - (char) (zoneBase | (x == 1 && y == 1 ? (PWRBIT) : 0))); + city.setTile(xpos - 1 + x, ypos - 1 + y, (char)zoneBase); + zoneBase++; } } + city.setTilePower(xpos, ypos, true); } /**