Fixed Shipwrecks
Shipwrecks only occur when disasters are enabled, similar to plane crashes.
This commit is contained in:
parent
e00810ef8f
commit
bdf41b12fb
1 changed files with 4 additions and 2 deletions
|
@ -118,8 +118,10 @@ public class ShipSprite extends Sprite
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!found) {
|
if (!found) {
|
||||||
//explodeSprite();
|
if (!city.noDisasters) {
|
||||||
//destroyTile(x/16, y/16);
|
explodeSprite();
|
||||||
|
destroyTile(x/16, y/16);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue