Merge pull request #2 from ignatio/master

Changed Shipsprite to only cause wrecks when disasters are enabled
This commit is contained in:
jason17055 2014-07-29 20:51:54 -04:00
commit 4336dbf5e7

View file

@ -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)
{ {