Sprite: destroyTile() should not destroy tunnels or underwater wires

This commit is contained in:
Jason Long 2014-09-21 15:54:05 -04:00
parent ac1dc2bf92
commit ef5635f6a3

View file

@ -180,8 +180,11 @@ public abstract class Sprite
int t = city.getTile(xpos, ypos);
if (isOverWater(t)) {
// becomes water
city.setTile(xpos, ypos, RIVER);
if (isRoad(t)) {
// becomes water
city.setTile(xpos, ypos, RIVER);
}
// wires and tunnels cannot be destroyed
return;
}