]> git.pond.sub.org Git - empserver/commitdiff
Make trade show exactly what's on sale, remove option SHOW_PLANE
authorMarkus Armbruster <armbru@pond.sub.org>
Tue, 16 Sep 2008 23:11:18 +0000 (19:11 -0400)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 16 Sep 2008 23:11:18 +0000 (19:11 -0400)
Planes and land units on ships are sold along with the ship, but trade
showed them only when SHOWPLANE was enabled.  Show them always.

Planes on land units are not sold along with the land unit, but trade
showed them when SHOWPLANE was enabled.  Don't.

include/econfig-spec.h
info/Options.t
src/lib/global/options.c
src/lib/subs/trdsub.c

index 565fa68759c1cd7e10c3f6b5e63f4afde73fc5d5..e2a85ce6ec90f4be3f316136029c1fbce6780c70 100644 (file)
@@ -181,8 +181,6 @@ EMPCF_OPT("RES_POP", opt_RES_POP,
     "Population is limited by research")
 EMPCF_OPT("SAIL", opt_SAIL,
     "Enable sail command")
     "Population is limited by research")
 EMPCF_OPT("SAIL", opt_SAIL,
     "Enable sail command")
-EMPCF_OPT("SHOWPLANE", opt_SHOWPLANE,
-    "Show planes and land units embarked on ships or land units up for trade")
 EMPCF_OPT("SLOW_WAR", opt_SLOW_WAR,
     "Declaring war takes time")
 EMPCF_OPT("SUPER_BARS", opt_SUPER_BARS,
 EMPCF_OPT("SLOW_WAR", opt_SLOW_WAR,
     "Declaring war takes time")
 EMPCF_OPT("SUPER_BARS", opt_SUPER_BARS,
index 777a3a6eb556059030e68fc6d9cb289d8b6b0a58..23d03ad604dd0a0ef5b67dcf2f7a9687e6155e88 100644 (file)
@@ -4,7 +4,6 @@
 .nf
 The following options are from KSU code:
 
 .nf
 The following options are from KSU code:
 
-SHOWPLANE:     planes/units on ships/units up for trade are shown
 PINPOINT(etc): Missile exist which target ships instead of sectors
 SAIL:          another way to automatically move ships (may also be buggy)
 DEMANDUPDATE:  updates may be allowed on player demand
 PINPOINT(etc): Missile exist which target ships instead of sectors
 SAIL:          another way to automatically move ships (may also be buggy)
 DEMANDUPDATE:  updates may be allowed on player demand
index c697f96dd4a981f79ea33fa69bd72c2f014dd505..561bd1417d2a8fc5ddc5f2d67290d758a8d86972 100644 (file)
@@ -59,7 +59,6 @@ int opt_NO_PLAGUE = 1;
 int opt_PINPOINTMISSILE = 1;
 int opt_RES_POP = 0;
 int opt_SAIL = 1;
 int opt_PINPOINTMISSILE = 1;
 int opt_RES_POP = 0;
 int opt_SAIL = 1;
-int opt_SHOWPLANE = 1;
 int opt_SLOW_WAR = 0;
 int opt_SUPER_BARS = 0;
 int opt_TECH_POP = 0;
 int opt_SLOW_WAR = 0;
 int opt_SUPER_BARS = 0;
 int opt_TECH_POP = 0;
index 512b2fbcf2a14f0c5aec4d3e3b3fafd0b544c516..8195642bd3a74ea79b99719159460c7ec90a6cb1 100644 (file)
@@ -129,33 +129,31 @@ trade_desc(struct trdstr *tp, union empobj_storage *tgp)
                pr("%c:%d ", ichr[it].i_mnem, sp->shp_item[it]);
        }
        pr("] #%d", tp->trd_unitid);
                pr("%c:%d ", ichr[it].i_mnem, sp->shp_item[it]);
        }
        pr("] #%d", tp->trd_unitid);
-       if (opt_SHOWPLANE) {
-           snxtitem_cargo(&ni, EF_PLANE, EF_SHIP, sp->shp_uid);
-           while (nxtitem(&ni, &plane)) {
-               pr("\n\t\t\t\t    tech %3d %3d%% %s #%d",
-                  plane.pln_tech,
-                  plane.pln_effic,
-                  plchr[(int)plane.pln_type].pl_name, plane.pln_uid);
-               if (getnuke(nuk_on_plane(&plane), &nuke))
-                   pr("(%s)", nchr[nuke.nuk_type].n_name);
-           }
-           snxtitem_cargo(&ni, EF_LAND, EF_SHIP, sp->shp_uid);
-           while (nxtitem(&ni, &land)) {
-               pr("\n\t\t\t\t    tech %3d %3d%% %s #%d",
-                  land.lnd_tech,
-                  land.lnd_effic,
-                  lchr[(int)land.lnd_type].l_name, land.lnd_uid);
-               if (pln_first_on_land(&land) >= 0) {
-                   snxtitem_cargo(&ni, EF_PLANE, EF_LAND, land.lnd_uid);
-                   while (nxtitem(&ni, &plane)) {
-                       pr("\n\t\t\t\t    tech %3d %3d%% %s #%d",
-                          plane.pln_tech,
-                          plane.pln_effic,
-                          plchr[(int)plane.pln_type].pl_name,
-                          plane.pln_uid);
-                       if (getnuke(nuk_on_plane(&plane), &nuke))
-                           pr("(%s)", nchr[nuke.nuk_type].n_name);
-                   }
+       snxtitem_cargo(&ni, EF_PLANE, EF_SHIP, sp->shp_uid);
+       while (nxtitem(&ni, &plane)) {
+           pr("\n\t\t\t\t    tech %3d %3d%% %s #%d",
+              plane.pln_tech,
+              plane.pln_effic,
+              plchr[(int)plane.pln_type].pl_name, plane.pln_uid);
+           if (getnuke(nuk_on_plane(&plane), &nuke))
+               pr("(%s)", nchr[nuke.nuk_type].n_name);
+       }
+       snxtitem_cargo(&ni, EF_LAND, EF_SHIP, sp->shp_uid);
+       while (nxtitem(&ni, &land)) {
+           pr("\n\t\t\t\t    tech %3d %3d%% %s #%d",
+              land.lnd_tech,
+              land.lnd_effic,
+              lchr[(int)land.lnd_type].l_name, land.lnd_uid);
+           if (pln_first_on_land(&land) >= 0) {
+               snxtitem_cargo(&ni, EF_PLANE, EF_LAND, land.lnd_uid);
+               while (nxtitem(&ni, &plane)) {
+                   pr("\n\t\t\t\t    tech %3d %3d%% %s #%d",
+                      plane.pln_tech,
+                      plane.pln_effic,
+                      plchr[(int)plane.pln_type].pl_name,
+                      plane.pln_uid);
+                   if (getnuke(nuk_on_plane(&plane), &nuke))
+                       pr("(%s)", nchr[nuke.nuk_type].n_name);
                }
            }
        }
                }
            }
        }
@@ -177,18 +175,6 @@ trade_desc(struct trdstr *tp, union empobj_storage *tgp)
                pr("%c:%d ", ichr[it].i_mnem, lp->lnd_item[it]);
        }
        pr("] #%d", tp->trd_unitid);
                pr("%c:%d ", ichr[it].i_mnem, lp->lnd_item[it]);
        }
        pr("] #%d", tp->trd_unitid);
-       if (opt_SHOWPLANE) {
-           snxtitem_cargo(&ni, EF_PLANE, EF_LAND, lp->lnd_uid);
-           while (nxtitem(&ni, &plane)) {
-               pr("\n\t\t\t\t    tech %3d %3d%% %s #%d",
-                  plane.pln_tech,
-                  plane.pln_effic,
-                  plchr[(int)plane.pln_type].pl_name, plane.pln_uid);
-               if (getnuke(nuk_on_plane(&plane), &nuke))
-                   pr("(%s)", nchr[nuke.nuk_type].n_name);
-           }
-       }
-       getsect(lp->lnd_x, lp->lnd_y, &sect);
        break;
     case EF_PLANE:
        pp = &tgp->plane;
        break;
     case EF_PLANE:
        pp = &tgp->plane;