tiles.rc: synthesize BULLBIT when saving file
this allows files to correctly load in older versions of Micropolis git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@895 d9718cc8-9f43-0410-858b-315f434eb58c
This commit is contained in:
parent
454409cecf
commit
6d7e94bf97
1 changed files with 4 additions and 1 deletions
|
@ -1998,7 +1998,7 @@ public class Micropolis
|
|||
for (int y = 0; y < DEFAULT_HEIGHT; y++)
|
||||
{
|
||||
int z = dis.readShort();
|
||||
z &= ~(1024 | 2048 | 8192 | 16384); // clear ZONEBIT,ANIMBIT,BURNBIT,CONDBIT on import
|
||||
z &= ~(1024 | 2048 | 4096 | 8192 | 16384); // clear ZONEBIT,ANIMBIT,BULLBIT,BURNBIT,CONDBIT on import
|
||||
map[y][x] = (char) z;
|
||||
}
|
||||
}
|
||||
|
@ -2018,6 +2018,9 @@ public class Micropolis
|
|||
if (isCombustible(z)) {
|
||||
z |= 8192; //synthesize BURNBIT on export
|
||||
}
|
||||
if (isDozeable(z)) {
|
||||
z |= 4096; //synthesize BULLBIT on export
|
||||
}
|
||||
if (isAnimated(z)) {
|
||||
z |= 2048; //synthesize ANIMBIT on export
|
||||
}
|
||||
|
|
Reference in a new issue