tiles: eliminate redundant predicate checkWet in favor of isOverWater
This commit is contained in:
parent
bf25532d01
commit
6604b266aa
2 changed files with 1 additions and 13 deletions
|
@ -194,7 +194,7 @@ public abstract class Sprite
|
||||||
city.makeExplosion(xpos, ypos);
|
city.makeExplosion(xpos, ypos);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (checkWet(t)) {
|
if (isOverWater(t)) {
|
||||||
city.setTile(xpos, ypos, RIVER);
|
city.setTile(xpos, ypos, RIVER);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -352,18 +352,6 @@ public class TileConstants
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean checkWet(int tile)
|
|
||||||
{
|
|
||||||
assert (tile & LOMASK) == tile;
|
|
||||||
|
|
||||||
return (tile == POWERBASE ||
|
|
||||||
tile == POWERBASE+1 ||
|
|
||||||
tile == RAILBASE ||
|
|
||||||
tile == RAILBASE + 1 ||
|
|
||||||
tile == BRWH ||
|
|
||||||
tile == BRWV);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static CityDimension getZoneSizeFor(int tile)
|
public static CityDimension getZoneSizeFor(int tile)
|
||||||
{
|
{
|
||||||
assert isZoneCenter(tile);
|
assert isZoneCenter(tile);
|
||||||
|
|
Reference in a new issue