X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/micropolis/blobdiff_plain/c46005fac01be68d45238a9344375fff5425f9a2..368d83ae8d59a7368779f94b48b302c03e8cfa01:/src/sim/w_sprite.c diff --git a/src/sim/w_sprite.c b/src/sim/w_sprite.c index 22688e5..ff1e679 100644 --- a/src/sim/w_sprite.c +++ b/src/sim/w_sprite.c @@ -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;