Merge pull request #2 from ignatio/master
Changed Shipsprite to only cause wrecks when disasters are enabled
This commit is contained in:
commit
4336dbf5e7
1 changed files with 2 additions and 0 deletions
|
@ -118,8 +118,10 @@ public class ShipSprite extends Sprite
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!found) {
|
if (!found) {
|
||||||
|
if (!city.noDisasters) {
|
||||||
explodeSprite();
|
explodeSprite();
|
||||||
destroyTile(x/16, y/16);
|
destroyTile(x/16, y/16);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue