]> git.pond.sub.org Git - empserver/commitdiff
Fix scuttle_tradeship() to require 2% efficiency
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 13 Sep 2008 20:47:10 +0000 (16:47 -0400)
committerMarkus Armbruster <armbru@pond.sub.org>
Mon, 15 Sep 2008 11:49:24 +0000 (07:49 -0400)
src/lib/commands/scut.c

index 8d5428322285386ba1832f56ce34711ffa060194..deb04d5e3a4b3ae9dbe28c34718ef398e2e15f0e 100644 (file)
@@ -165,7 +165,7 @@ scuttle_tradeship(struct shpstr *sp, int interactive)
 
     mp = &mchr[(int)sp->shp_type];
     getsect(sp->shp_x, sp->shp_y, &sect);
-    if (sect.sct_own && sect.sct_type == SCT_HARBR) {
+    if (sect.sct_own && sect.sct_type == SCT_HARBR && sect.sct_effic >= 2) {
        dist = mapdist(sp->shp_x, sp->shp_y,
                       sp->shp_orig_x, sp->shp_orig_y);
        /* Don't disclose distance to to pirates */