api: fix use of hi-bits in stadium-handling code

This commit is contained in:
Jason Long 2014-06-20 12:21:52 -04:00
parent e913626f60
commit 951c0fecbf

View file

@ -943,12 +943,13 @@ class MapScanner extends TileBehavior
for (int y = 0; y < 4; y++) 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, city.setTile(xpos - 1 + x, ypos - 1 + y, (char)zoneBase);
(char) (zoneBase | (x == 1 && y == 1 ? (PWRBIT) : 0))); zoneBase++;
} }
} }
city.setTilePower(xpos, ypos, true);
} }
/** /**