cleanup: avoid comparisons with tile constants
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@681 d9718cc8-9f43-0410-858b-315f434eb58c
This commit is contained in:
parent
906a0c4570
commit
9ff3e14eb5
1 changed files with 22 additions and 25 deletions
|
@ -62,8 +62,6 @@ class MapScanner
|
|||
|
||||
cchr9 = (char) (cchr & LOMASK);
|
||||
|
||||
if (cchr9 >= FLOOD)
|
||||
{
|
||||
if (city.newPower && ((cchr & CONDBIT) != 0))
|
||||
{
|
||||
setZonePower();
|
||||
|
@ -93,7 +91,6 @@ class MapScanner
|
|||
city.setTile(xpos, ypos, (char)(RUBBLE + PRNG.nextInt(4) + BULLBIT));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Called when the current tile is a radioactive tile.
|
||||
|
|
Reference in a new issue