tiles: eliminate redundant predicate checkWet in favor of isOverWater

This commit is contained in:
Jason Long 2014-09-21 14:09:07 -04:00
parent bf25532d01
commit 6604b266aa
2 changed files with 1 additions and 13 deletions

View file

@ -194,7 +194,7 @@ public abstract class Sprite
city.makeExplosion(xpos, ypos);
}
}
if (checkWet(t)) {
if (isOverWater(t)) {
city.setTile(xpos, ypos, RIVER);
}
else {

View file

@ -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)
{
assert isZoneCenter(tile);