]> cvs.zerfleddert.de Git - micropolis/blobdiff - src/sim/w_sprite.c
fix fire coverage overlay by iterating over the whole map
[micropolis] / src / sim / w_sprite.c
index 22688e5b2e9f457d0c0f09351f571cecf58511a1..ff1e679cf150e24c96952b2937cecf855914b0f2 100644 (file)
@@ -1588,6 +1588,23 @@ GeneratePlane(int x, int y)
 }
 
 
+MakeAirCrash(void)
+{
+#ifndef NO_AIRCRASH
+  if (GetSprite(AIR) == NULL) {
+    short x, y;
+
+    x = Rand(WORLD_X - 20) + 10;
+    y = Rand(WORLD_Y - 10) + 5;
+
+    GeneratePlane(x, y);
+  }
+
+  ExplodeSprite(GetSprite(AIR));
+#endif
+}
+
+
 MakeTornado(void)
 {
   short x, y;
Impressum, Datenschutz