engine bugfix: when downgrading full res to little houses, preserve pwrbit
This fixes the bug where a powered RES zone will temporarily flash "no power" when it downgrades from full to partial. git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@780 d9718cc8-9f43-0410-858b-315f434eb58c
This commit is contained in:
parent
a32769259c
commit
1c4eb5a346
1 changed files with 2 additions and 1 deletions
|
@ -1149,7 +1149,8 @@ class MapScanner
|
||||||
{
|
{
|
||||||
// downgrade from full-size zone to 8 little houses
|
// downgrade from full-size zone to 8 little houses
|
||||||
|
|
||||||
city.setTile(xpos, ypos, (char)(FREEZ | BULLBIT));
|
int pwrBit = (cchr & PWRBIT);
|
||||||
|
city.setTile(xpos, ypos, (char)(FREEZ | BULLBIT | pwrBit));
|
||||||
for (int x = xpos-1; x <= xpos+1; x++)
|
for (int x = xpos-1; x <= xpos+1; x++)
|
||||||
{
|
{
|
||||||
for (int y = ypos-1; y <= ypos+1; y++)
|
for (int y = ypos-1; y <= ypos+1; y++)
|
||||||
|
|
Reference in a new issue