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,10 +118,12 @@ public class ShipSprite extends Sprite
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!found) {
|
if (!found) {
|
||||||
|
if (!city.noDisasters) {
|
||||||
explodeSprite();
|
explodeSprite();
|
||||||
destroyTile(x/16, y/16);
|
destroyTile(x/16, y/16);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
boolean tryOther(int tile, int oldDir, int newDir)
|
boolean tryOther(int tile, int oldDir, int newDir)
|
||||||
{
|
{
|
||||||
|
|
Reference in a new issue