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);
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue