jason17055/micropolis-java — pull request #2 by ignatio (2014-06-28 17:23:18+00:00)
Title: Changed Shipsprite to only cause wrecks when disasters are enabled

The code was already present in the airplanesprite.java file. I'm not sure why it was missing from the shipsprite.java code, but without it there is a spamming of shipwrecks on even when disasters are disabled. I added a check for city.nodisasters to run before the explosion code is triggered, thereby avoiding wrecks when disasters are disabled. This allows users to leave the city running in no disaster mode without fear of titanic spam.