]> git.zerfleddert.de Git - micropolis/commitdiff
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 ff1e679cf150e24c96952b2937cecf855914b0f2..3f509898faa75eb991a99b9b4fbabbdde34b602a 100644 (file)
@@ -898,11 +898,13 @@ DoShipSprite(SimSprite *sprite)
     sprite->frame = 0;
     return;
   }
     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