tile-names: remember PWRBIT when loading tiles from save-file
This commit is contained in:
parent
005a988d3a
commit
c3fde70ddc
1 changed files with 1 additions and 1 deletions
|
@ -2137,7 +2137,7 @@ public class Micropolis
|
||||||
{
|
{
|
||||||
int z = dis.readShort();
|
int z = dis.readShort();
|
||||||
z &= ~(1024 | 2048 | 4096 | 8192 | 16384); // clear ZONEBIT,ANIMBIT,BULLBIT,BURNBIT,CONDBIT on import
|
z &= ~(1024 | 2048 | 4096 | 8192 | 16384); // clear ZONEBIT,ANIMBIT,BULLBIT,BURNBIT,CONDBIT on import
|
||||||
map[y][x] = (char) Tiles.loadByOrdinal(z).tileNumber;
|
map[y][x] = (char) ((z & (~LOMASK)) | Tiles.loadByOrdinal(z & LOMASK).tileNumber);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue