Python translation now includes ai.c.
[super-star-trek.git] / src / events.c
index aeefdb49c8fdddbcc4d4b76d39e5d2c67567c9a8..99ac229b44f074e4982b2b9b66f34083aa4a17ee 100644 (file)
@@ -689,7 +689,7 @@ void nova(coord nov)
                        game.state.nplankl++;
                        crmena(true, IHP, sector, scratch);
                        prout(_(" destroyed."));
-                       DESTROY(&game.state.planets[game.iplnet]);
+                       game.state.planets[game.iplnet].pclass = destroyed;
                        game.iplnet = 0;
                        invalidate(game.plnet);
                        if (game.landed) {
@@ -919,7 +919,7 @@ void supernova(bool induced, coord *w)
        int loop;
        for (loop = 0; loop < game.inplan; loop++)
            if (same(game.state.planets[loop].w, nq)) {
-               DESTROY(&game.state.planets[loop]);
+               game.state.planets[loop].pclass = destroyed;
            }
     }
     /* Destroy any base in supernovaed quadrant */
@@ -943,7 +943,7 @@ void supernova(bool induced, coord *w)
     if (same(game.quadrant, nq) || !damaged(DRADIO) || game.condition == docked)
        game.state.galaxy[nq.x][nq.y].supernova = true;
     /* If supernova destroys last Klingons give special message */
-    if (KLINGREM==0 && !same(nq, game.quadrant)) {
+    if ((game.state.remkl + game.state.remcom + game.state.nscrem)==0 && !same(nq, game.quadrant)) {
        skip(2);
        if (!induced)
            prout(_("Lucky you!"));