takeover: Don't stop nukes on takeover
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 18 Jan 2021 07:44:40 +0000 (08:44 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 6 Feb 2021 15:55:37 +0000 (16:55 +0100)
Nukes can't be repaired, started or stopped.  Except takeover_unit()
stops them.  Don't.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/lib/subs/takeover.c

index 261e55f33af1451b63c51f0ce0b6602b041b9c54..6be8127880874e2f210418e3ea5becc61166ca12 100644 (file)
@@ -233,7 +233,6 @@ takeover_unit(struct empobj *unit, natid newown)
     struct shpstr *sp;
     struct plnstr *pp;
     struct lndstr *lp;
-    struct nukstr *np;
     int type;
     struct nstr_item ni;
     union empobj_storage cargo;
@@ -262,8 +261,6 @@ takeover_unit(struct empobj *unit, natid newown)
        lp->lnd_harden = 0;
        break;
     case EF_NUKE:
-       np = (struct nukstr *)unit;
-       np->nuk_off = 1;
        break;
     default:
        CANT_REACH();