]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/laun.c
commands: Always put ship or land unit before retreating it
[empserver] / src / lib / commands / laun.c
index 04900bac0a59468ba2db561f9236416758b526c5..21f4c244d2d5c2a45f1da98e8a5da3704bf9ba30 100644 (file)
@@ -276,9 +276,9 @@ launch_missile(struct plnstr *pp)
        shipdamage(&target_ship, dam);
        if (target_ship.shp_effic < SHIP_MINEFF)
            pr("%s sunk!\n", prship(&target_ship));
+       putship(target_ship.shp_uid, &target_ship);
        if (dam && (target_ship.shp_rflags & RET_INJURED))
            retreat_ship(&target_ship, target_ship.shp_own, 'i');
-       putship(target_ship.shp_uid, &target_ship);
     }
     return RET_OK;
 }