cleanup: no longer need to apply LOMASK

git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@900 d9718cc8-9f43-0410-858b-315f434eb58c
This commit is contained in:
jason@long.name 2013-12-06 16:02:17 +00:00
parent c2286465a7
commit 0d82d3514c
2 changed files with 3 additions and 3 deletions

View file

@ -104,7 +104,7 @@ class Bulldozer extends ToolStroke
int tile = eff.getTile(xx,yy);
if (tile == CLEAR)
continue;
tile = tile & LOMASK;
if (tile != RADTILE && tile != DIRT) {
int z = inPreview ? 0 : city.PRNG.nextInt(3);
int nTile = TINYEXP + z;

View file

@ -339,8 +339,8 @@ class TerrainBehavior extends TileBehavior
int x = xpos + Dx[z];
int y = ypos + Dy[z];
if (city.testBounds(x,y)) {
if ((city.map[y][x] & LOMASK) == (fromTab[z] & LOMASK) ||
(city.map[y][x] == CHANNEL)
if ((city.getTile(x,y) == fromTab[z]) ||
(city.getTile(x,y) == CHANNEL)
) {
city.setTile(x, y, toTab[z]);
}