]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/payo.c
(payo, scuttle_tradeship, sdump): Disclose construction site only to
[empserver] / src / lib / commands / payo.c
index 9b1c8c532358dad229d9ffce029d5951ecdd47fa..357154d0cbf48ff870c9aaa82ea91840da5e2617 100644 (file)
@@ -92,11 +92,16 @@ payo(void)
            pr("%3d ", ship.shp_own);
        pr("%4d ", ni.cur);
        pr("%-16.16s ", mchr[(int)ship.shp_type].m_name);
+       if (ship.shp_own != ship.shp_orig_own && !player->god) {
+           /* Don't disclose construction site to pirates! */
+           pr("    ?     ");
+           prxy("%4d,%-4d ", ship.shp_x, ship.shp_y, player->cnum);
+           pr("   ? $  ?\n");
+           continue;
+       }
        prxy("%4d,%-4d ", ship.shp_orig_x, ship.shp_orig_y, player->cnum);
        prxy("%4d,%-4d ", ship.shp_x, ship.shp_y, player->cnum);
 
-       getsect(ship.shp_x, ship.shp_y, &sect);
-
        dist = mapdist(ship.shp_x, ship.shp_y,
                       ship.shp_orig_x, ship.shp_orig_y);
        pr("%4d ", dist);