don't wreck ships when disasters are disabled
authorMichael Gernoth <michael@gernoth.net>
Sun, 27 Jan 2008 13:16:57 +0000 (14:16 +0100)
committerMichael Gernoth <michael@gernoth.net>
Sun, 27 Jan 2008 13:16:57 +0000 (14:16 +0100)
src/sim/w_sprite.c

index ff1e679..3f50989 100644 (file)
@@ -898,11 +898,13 @@ DoShipSprite(SimSprite *sprite)
     sprite->frame = 0;
     return;
   }
-  for (z = 0; z < 8; z++) {
-    if (t == BtClrTab[z]) break;
-    if (z == 7) {
-      ExplodeSprite(sprite);
-      Destroy(sprite->x + 48, sprite->y);
+  if (!NoDisasters) {
+    for (z = 0; z < 8; z++) {
+      if (t == BtClrTab[z]) break;
+      if (z == 7) {
+        ExplodeSprite(sprite);
+        Destroy(sprite->x + 48, sprite->y);
+      }
     }
   }
 }
Impressum, Datenschutz