Sprite: destroyTile() should not destroy tunnels or underwater wires
This commit is contained in:
parent
ac1dc2bf92
commit
ef5635f6a3
1 changed files with 5 additions and 2 deletions
|
@ -180,8 +180,11 @@ public abstract class Sprite
|
||||||
|
|
||||||
int t = city.getTile(xpos, ypos);
|
int t = city.getTile(xpos, ypos);
|
||||||
if (isOverWater(t)) {
|
if (isOverWater(t)) {
|
||||||
// becomes water
|
if (isRoad(t)) {
|
||||||
city.setTile(xpos, ypos, RIVER);
|
// becomes water
|
||||||
|
city.setTile(xpos, ypos, RIVER);
|
||||||
|
}
|
||||||
|
// wires and tunnels cannot be destroyed
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue