]> git.pond.sub.org Git - empserver/commitdiff
(V_CIVIL, V_MILIT, V_SHELL, V_GUN, V_PETROL, V_IRON, V_DUST, V_BAR,
authorMarkus Armbruster <armbru@pond.sub.org>
Tue, 17 Aug 2004 16:12:31 +0000 (16:12 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 17 Aug 2004 16:12:31 +0000 (16:12 +0000)
V_FOOD, V_OIL, V_LCM, V_HCM, V_UW, V_RAD, V_ITEM): Remove, use item
types instead.

17 files changed:
include/var.h
src/lib/commands/deli.c
src/lib/commands/drop.c
src/lib/commands/expl.c
src/lib/commands/fly.c
src/lib/commands/load.c
src/lib/commands/move.c
src/lib/commands/shoo.c
src/lib/common/damage.c
src/lib/global/init.c
src/lib/global/item.c
src/lib/global/product.c
src/lib/subs/attsub.c
src/lib/subs/lndsub.c
src/lib/subs/plnsub.c
src/lib/update/deliver.c
src/lib/update/nav_util.c

index 736af29fd2f6692076f15f8ca25e74767aa55430..a780ec74faebc4a4bc51f6b3f41352b3d3b8dca0 100644 (file)
@@ -40,8 +40,6 @@
 #define        PLG_INCUBATE    3
 #define        PLG_EXPOSED     4
 
-#define        V_ITEM(x)       (x)
-
 #define I_NONE         0
 #define I_CIVIL                1
 #define I_MILIT                2
 #define I_RAD          14
 #define I_MAX          14
 
-#define        V_CIVIL         V_ITEM(I_CIVIL)
-#define        V_MILIT         V_ITEM(I_MILIT)
-#define        V_SHELL         V_ITEM(I_SHELL)
-#define        V_GUN           V_ITEM(I_GUN)
-#define        V_PETROL        V_ITEM(I_PETROL)
-#define        V_IRON          V_ITEM(I_IRON)
-#define        V_DUST          V_ITEM(I_DUST)
-#define        V_BAR           V_ITEM(I_BAR)
-#define        V_FOOD          V_ITEM(I_FOOD)
-#define        V_OIL           V_ITEM(I_OIL)
-#define        V_LCM           V_ITEM(I_LCM)
-#define        V_HCM           V_ITEM(I_HCM)
-#define V_UW           V_ITEM(I_UW)
-#define V_RAD          V_ITEM(I_RAD)
-
 #endif /* _VAR_H_ */
index 6328e7e03e50878c1f8e698c6225e346f6cf882d..e6bf313415014cad3850d0f9cfc9058bca47407a 100644 (file)
@@ -59,7 +59,7 @@ deli(void)
     if ((ich = whatitem(player->argp[1], "deliver what? ")) == 0)
        return RET_SYN;
     /*
-       if (ich->i_vtype == V_CIVIL || ich->i_vtype == V_MILIT) {
+       if (ich->i_vtype == I_CIVIL || ich->i_vtype == I_MILIT) {
        pr("You cannot deliver people!\n");
        return RET_FAIL;
        }
index 08d505a3a2b55893073255e239d038c7c8d3da49..7d1cc7606fba6fe208094001a9f239ea0f666602 100644 (file)
@@ -99,13 +99,13 @@ drop(void)
 
     if (target.sct_own == player->cnum
        || getrel(getnatp(target.sct_own), player->cnum) == ALLIED) {
-       if (ip->i_vtype == V_CIVIL && target.sct_own != target.sct_oldown) {
+       if (ip->i_vtype == I_CIVIL && target.sct_own != target.sct_oldown) {
            pr("Can't drop civilians into occupied sectors.\n");
            return RET_FAIL;
        }
     } else {
        /* into the unknown... */
-       if (ip->i_vtype != V_SHELL) {
+       if (ip->i_vtype != I_SHELL) {
            pr("You don't own %s!\n", xyas(tx, ty, player->cnum));
            return RET_FAIL;
        }
@@ -152,7 +152,7 @@ drop(void)
     } else {
        getsect(tx, ty, &target);
        if (target.sct_type == SCT_WATER && (mission_flags & P_MINE)
-           && ip->i_vtype == V_SHELL)
+           && ip->i_vtype == I_SHELL)
            pln_mine(&bomb_list, &target);
        else
            pln_dropoff(&bomb_list, ip, tx, ty, (s_char *)&target, EF_SECTOR);
index c671abd7a6caac7f695388f56fe63d5e9b6f31d5..51566f5db83e0b8556929262e118d75a16f121cd 100644 (file)
@@ -74,7 +74,7 @@ explore(void)
     if (!(ip = whatitem(player->argp[1], "explore with what? (civ/mil) ")))
        return RET_SYN;
     vtype = ip->i_vtype;
-    if ((vtype != V_CIVIL) && (vtype != V_MILIT)) {
+    if ((vtype != I_CIVIL) && (vtype != I_MILIT)) {
        pr("You can only explore with civs and mil.\n");
        return RET_FAIL;
     }
@@ -94,7 +94,7 @@ explore(void)
     }
     own = sect.sct_own;
     mob = (int)sect.sct_mobil;
-    if (vtype == V_CIVIL && sect.sct_oldown != own) {
+    if (vtype == I_CIVIL && sect.sct_oldown != own) {
        pr("You can't explore with conquered populace!\n");
        return RET_SYN;
     }
@@ -103,12 +103,12 @@ explore(void)
           xyas(sect.sct_x, sect.sct_y, player->cnum));
        return RET_SYN;
     }
-    if (vtype == V_CIVIL) {
+    if (vtype == I_CIVIL) {
        work = sect.sct_work;
        if (work != 100)
            pr("Warning: civil unrest\n");
        loyal = sect.sct_loyal;
-    } else if (vtype == V_MILIT) {
+    } else if (vtype == I_MILIT) {
        work = 100;
        loyal = 0;
     }
@@ -226,7 +226,7 @@ explore(void)
        sect.sct_work = work;
        sect.sct_loyal = loyal;
     }
-    if (vtype == V_CIVIL && sect.sct_oldown != player->cnum) {
+    if (vtype == I_CIVIL && sect.sct_oldown != player->cnum) {
        pr("Your civilians don't want to stay!\n");
        getsect(start.sct_x, start.sct_y, &sect);
        if (sect.sct_own != own) {
@@ -262,7 +262,7 @@ explore(void)
     }
     if (infected && sect.sct_pstage == PLG_HEALTHY)
        sect.sct_pstage = PLG_EXPOSED;
-    if (vtype == V_CIVIL) {
+    if (vtype == I_CIVIL) {
        sect.sct_loyal
            = (amt_dst * sect.sct_loyal + amount * loyal) / (amt_dst + amount);
        sect.sct_work
index a485817a2c900aa8d6cc2d2ce3b42882f4d4448b..7adc948b86886da13c4a46419c7e1c795cb36ac3 100644 (file)
@@ -113,7 +113,7 @@ fly(void)
        dst_type = EF_SHIP;
     }
 
-    if (ip && ip->i_vtype == V_CIVIL && target.sct_own != target.sct_oldown) {
+    if (ip && ip->i_vtype == I_CIVIL && target.sct_own != target.sct_oldown) {
        pr("Can't fly civilians into occupied sectors.\n");
        return RET_FAIL;
     }
index 3ce5c843e57d7d1f1bfc39979dbf39653ceec1d5..1acc9b31b58099adf2a7ca72262f5cbb3ec2f1ae 100644 (file)
@@ -771,7 +771,7 @@ load_comm_ship(struct sctstr *sectp, struct shpstr *sp,
        move_amt = sect_amt - ITEM_MAX;
     if (!move_amt)
        return RET_OK;
-    if (sectp->sct_oldown != player->cnum && item == V_CIVIL) {
+    if (sectp->sct_oldown != player->cnum && item == I_CIVIL) {
        pr("%s civilians refuse to %s at %s!\n",
           move_amt < 0 ? "Your" : "Foreign",
           move_amt < 0 ? "disembark" : "board",
@@ -979,7 +979,7 @@ load_comm_land(struct sctstr *sectp, struct lndstr *lp,
           xyas(lp->lnd_x, lp->lnd_y, player->cnum));
        return RET_FAIL;
     }
-    if (sectp->sct_oldown != player->cnum && item == V_CIVIL) {
+    if (sectp->sct_oldown != player->cnum && item == I_CIVIL) {
        pr("%s civilians refuse to %s at %s!\n",
           move_amt < 0 ? "Your" : "Foreign",
           move_amt < 0 ? "disembark" : "board",
@@ -990,7 +990,7 @@ load_comm_land(struct sctstr *sectp, struct lndstr *lp,
     lp->lnd_item[item] = land_amt + move_amt;
 
     /* Did we put mils onto this unit? If so, reset the fortification */
-    if (item == V_MILIT && move_amt > 0)
+    if (item == I_MILIT && move_amt > 0)
        lp->lnd_harden = 0;
     if (move_amt >= 0) {
        pr("%d %s loaded onto %s at %s\n",
index 8d8d185ae873922dc315b2b97dfbeb56caeded05..589e2f5868f126a961222fe947d90bd4b514f8b7 100644 (file)
@@ -94,7 +94,7 @@ move(void)
      * military control necessary to move
      * goodies in occupied territory.
      */
-    if (!istest && sect.sct_oldown != player->cnum && vtype != V_MILIT) {
+    if (!istest && sect.sct_oldown != player->cnum && vtype != I_MILIT) {
        int tot_mil = 0;
        struct nstr_item ni;
        struct lndstr land;
@@ -119,7 +119,7 @@ move(void)
     }
     own = sect.sct_own;
     mob = (int)sect.sct_mobil;
-    if (!istest && vtype == V_CIVIL && sect.sct_oldown != own) {
+    if (!istest && vtype == I_CIVIL && sect.sct_oldown != own) {
        pr("You can't move conquered populace!\n");
        return RET_FAIL;
     }
@@ -128,12 +128,12 @@ move(void)
           xyas(sect.sct_x, sect.sct_y, player->cnum));
        return RET_SYN;
     }
-    if (vtype == V_CIVIL) {
+    if (vtype == I_CIVIL) {
        work = sect.sct_work;
        if (work != 100)
            pr("Warning: civil unrest\n");
        loyal = sect.sct_loyal;
-    } else if (vtype == V_MILIT) {
+    } else if (vtype == I_MILIT) {
        work = 100;
        loyal = 0;
     }
@@ -251,7 +251,7 @@ move(void)
            pr("Somebody has captured that sector!\n");
        getsect(x, y, &sect);
     }
-    if (vtype == V_CIVIL && sect.sct_item[I_CIVIL]
+    if (vtype == I_CIVIL && sect.sct_item[I_CIVIL]
        && sect.sct_oldown != player->cnum) {
        pr("Your civilians don't want to stay!\n");
        getsect(x, y, &sect);
@@ -330,7 +330,7 @@ move(void)
      */
     if (infected && sect.sct_pstage == PLG_HEALTHY)
        sect.sct_pstage = PLG_EXPOSED;
-    if (vtype == V_CIVIL) {
+    if (vtype == I_CIVIL) {
        sect.sct_loyal
            = (amt_dst * sect.sct_loyal + amount * loyal) / (amt_dst + amount);
        sect.sct_work
@@ -388,16 +388,16 @@ would_abandon(struct sctstr *sp, int vtype, int amnt, struct lndstr *lp)
 {
     int mil, civs, loyalcivs;
 
-    if ((vtype != V_CIVIL) && (vtype != V_MILIT))
+    if ((vtype != I_CIVIL) && (vtype != I_MILIT))
        return 0;
 
     mil = sp->sct_item[I_MILIT];
     civs = sp->sct_item[I_CIVIL];
 
-    if (vtype == V_MILIT)
+    if (vtype == I_MILIT)
        mil -= amnt;
 
-    if (vtype == V_CIVIL)
+    if (vtype == I_CIVIL)
        civs -= amnt;
 
     if (sp->sct_own == sp->sct_oldown)
index eec20ccf6fde017b44ae37feae465f3e496d25e7..74fba8d124669f518ed1841507753ac45aabe3e6 100644 (file)
@@ -64,7 +64,7 @@ shoo(void)
     s_char buf[128];
 
     ip = whatitem(player->argp[1], "Shoot what <civ or uw> ");
-    if (ip == 0 || (ip->i_vtype != V_CIVIL && ip->i_vtype != V_UW))
+    if (ip == 0 || (ip->i_vtype != I_CIVIL && ip->i_vtype != I_UW))
        return RET_SYN;
     item = ip->i_vtype;
     if (!snxtsct(&nstr, player->argp[2]))
index 649b2626f6b84f2c366811dc41a9cf009d3c2fb7..baaea43ad528095e17f69eb8cb1dc54715d6cb1a 100644 (file)
@@ -196,12 +196,12 @@ commdamage(register int amt, int dam, int vtype)
 {
     int lost;
 
-    if (vtype == V_BAR && opt_SUPER_BARS)
+    if (vtype == I_BAR && opt_SUPER_BARS)
        return amt;
 
     lost = amt - effdamage(amt, dam);
 
-    if (vtype == V_MILIT || vtype == V_CIVIL || vtype == V_UW)
+    if (vtype == I_MILIT || vtype == I_CIVIL || vtype == I_UW)
        lost = ldround(people_damage * lost, 1);
     return amt - lost;
 }
index 9e2ecebcf5713fe8b707d68ea4bbdaea81147454..36f850287217a13043f86dabad8c8a99f0e6fdf3 100644 (file)
@@ -92,7 +92,7 @@ init_pchr(void)
 
     for (p = pchr, pcount = 0; pcount < prd_maxno; pcount++, p++) {
        if (opt_GO_RENEW) {
-           if (p->p_type == V_DUST || p->p_type == V_OIL)
+           if (p->p_type == I_DUST || p->p_type == I_OIL)
                p->p_nrdep = 0;
        }
     }
index 60924b60655b14eacf1290c9136877e2d9726657..35b194378db93a55de3b5259dba14cf16399b368 100644 (file)
@@ -43,20 +43,20 @@ struct ichrstr ichr[I_MAX + 2] = {
 /*        mnem vtype      val  sell lbs rg,wh,ur,bnk  name */
     {'?', 0, 0, 0, 0, {0, 0, 0, 0}, "unused"},
 /* STM CHANGED HERE */
-    {'c', V_CIVIL, 1, 0, 1, {10, 10, 10, 10}, "civilians"},
-    {'m', V_MILIT, 0, 0, 1, {1, 1, 1, 1}, "military"},
-    {'s', V_SHELL, 5, 1, 1, {1, 10, 1, 1}, "shells"},
-    {'g', V_GUN, 60, 1, 10, {1, 10, 1, 1}, "guns"},
-    {'p', V_PETROL, 4, 1, 1, {1, 10, 1, 1}, "petrol"},
-    {'i', V_IRON, 2, 1, 1, {1, 10, 1, 1}, "iron ore"},
-    {'d', V_DUST, 20, 1, 5, {1, 10, 1, 1}, "dust (gold)"},
-    {'b', V_BAR, 280, 1, 50, {1, 5, 1, 4}, "bars of gold"},
-    {'f', V_FOOD, 0, 1, 1, {1, 10, 1, 1}, "food"},
-    {'o', V_OIL, 8, 1, 1, {1, 10, 1, 1}, "oil"},
-    {'l', V_LCM, 2, 1, 1, {1, 10, 1, 1}, "light products"},
-    {'h', V_HCM, 4, 1, 1, {1, 10, 1, 1}, "heavy products"},
-    {'u', V_UW, 1, 1, 2, {1, 2, 1, 1}, "uncompensated workers"},
-    {'r', V_RAD, 150, 1, 8, {1, 10, 1, 1}, "radioactive materials"},
+    {'c', I_CIVIL, 1, 0, 1, {10, 10, 10, 10}, "civilians"},
+    {'m', I_MILIT, 0, 0, 1, {1, 1, 1, 1}, "military"},
+    {'s', I_SHELL, 5, 1, 1, {1, 10, 1, 1}, "shells"},
+    {'g', I_GUN, 60, 1, 10, {1, 10, 1, 1}, "guns"},
+    {'p', I_PETROL, 4, 1, 1, {1, 10, 1, 1}, "petrol"},
+    {'i', I_IRON, 2, 1, 1, {1, 10, 1, 1}, "iron ore"},
+    {'d', I_DUST, 20, 1, 5, {1, 10, 1, 1}, "dust (gold)"},
+    {'b', I_BAR, 280, 1, 50, {1, 5, 1, 4}, "bars of gold"},
+    {'f', I_FOOD, 0, 1, 1, {1, 10, 1, 1}, "food"},
+    {'o', I_OIL, 8, 1, 1, {1, 10, 1, 1}, "oil"},
+    {'l', I_LCM, 2, 1, 1, {1, 10, 1, 1}, "light products"},
+    {'h', I_HCM, 4, 1, 1, {1, 10, 1, 1}, "heavy products"},
+    {'u', I_UW, 1, 1, 2, {1, 2, 1, 1}, "uncompensated workers"},
+    {'r', I_RAD, 150, 1, 8, {1, 10, 1, 1}, "radioactive materials"},
     {0, 0, 0, 0, 0, {0, 0, 0, 0}, 0}
 };
 
index 39a5c7e87a9fed852a5125877609f4d1bdb8c1ef..fb391a8133d4bb790990bf2999b9a49f0b495a89 100644 (file)
@@ -45,34 +45,34 @@ struct pchrstr pchr[] = {
      0, 0, 0, 0, 0, 0, 0, 0, 0,
      "unused", "",},
     {{I_LCM, I_HCM, I_NONE}, {2, 1, 0},
-     V_SHELL, -1, 3, 0, 0, NAT_TLEV, 20, 10, 100,
+     I_SHELL, -1, 3, 0, 0, NAT_TLEV, 20, 10, 100,
      "shells", "shells",},
     {{I_OIL, I_LCM, I_HCM}, {1, 5, 10},
-     V_GUN, -1, 30, 0, 0, NAT_TLEV, 20, 10, 100,
+     I_GUN, -1, 30, 0, 0, NAT_TLEV, 20, 10, 100,
      "guns", "guns",},
     {{I_OIL, I_NONE, I_NONE}, {1, 0, 0},
-     V_PETROL, -1, 1, 0, 0, NAT_TLEV, 20, 10, 1000,
+     I_PETROL, -1, 1, 0, 0, NAT_TLEV, 20, 10, 1000,
      "petrol", "petrol",},
     {{I_NONE, I_NONE, I_NONE}, {0, 0, 0},
-     V_IRON, -1, 0, offsetof(struct sctstr, sct_min), 0, -1, 0, 0, 100,
+     I_IRON, -1, 0, offsetof(struct sctstr, sct_min), 0, -1, 0, 0, 100,
      "iron ore", "iron",},
     {{I_NONE, I_NONE, I_NONE}, {0, 0, 0},
-     V_DUST, -1, 0, offsetof(struct sctstr, sct_gmin), 20, -1, 0, 0, 100,
+     I_DUST, -1, 0, offsetof(struct sctstr, sct_gmin), 20, -1, 0, 0, 100,
      "gold dust", "dust",},
     {{I_DUST, I_NONE, I_NONE}, {5, 0, 0},
-     V_BAR, -1, 10, 0, 0, -1, 0, 0, 100,
+     I_BAR, -1, 10, 0, 0, -1, 0, 0, 100,
      "gold bars", "bars",},
     {{I_NONE, I_NONE, I_NONE}, {0, 0, 0},
-     V_FOOD, -1, 0, offsetof(struct sctstr, sct_fertil), 0, NAT_TLEV, -10, 10, 900,
+     I_FOOD, -1, 0, offsetof(struct sctstr, sct_fertil), 0, NAT_TLEV, -10, 10, 900,
      "food", "food",},
     {{I_NONE, I_NONE, I_NONE}, {0, 0, 0},
-     V_OIL, -1, 0, offsetof(struct sctstr, sct_oil), 10, NAT_TLEV, -10, 10, 100,
+     I_OIL, -1, 0, offsetof(struct sctstr, sct_oil), 10, NAT_TLEV, -10, 10, 100,
      "oil", "oil",},
     {{I_IRON, I_NONE, I_NONE}, {1, 0, 0},
-     V_LCM, -1, 0, 0, 0, NAT_TLEV, -10, 10, 100,
+     I_LCM, -1, 0, 0, 0, NAT_TLEV, -10, 10, 100,
      "light construction materials", "lcm",},
     {{I_IRON, I_NONE, I_NONE}, {2, 0, 0},
-     V_HCM, -1, 0, 0, 0, NAT_TLEV, -10, 10, 100,
+     I_HCM, -1, 0, 0, 0, NAT_TLEV, -10, 10, 100,
      "heavy construction materials", "hcm",},
     {{I_DUST, I_OIL, I_LCM}, {1, 5, 10},
      0, NAT_TLEV, 300, 0, 0, NAT_ELEV, 5, 10, 100,
@@ -87,10 +87,10 @@ struct pchrstr pchr[] = {
      0, NAT_HLEV, 9, 0, 0, -1, 0, 0, 100,
      "happy strollers", "happy",},
     {{I_NONE, I_NONE, I_NONE}, {0, 0, 0},
-     V_RAD, -1, 2, offsetof(struct sctstr, sct_uran), 35, NAT_TLEV, 40, 10, 100,
+     I_RAD, -1, 2, offsetof(struct sctstr, sct_uran), 35, NAT_TLEV, 40, 10, 100,
      "radioactive materials", "rad",},
     {{I_NONE, I_NONE, I_NONE}, {0, 0, 0},
-     V_DUST, -1, 0, offsetof(struct sctstr, sct_gmin), 20, -1, 0, 0, 75,
+     I_DUST, -1, 0, offsetof(struct sctstr, sct_gmin), 20, -1, 0, 0, 75,
      "gold dust", "dust",},
     {{I_NONE, I_NONE, I_NONE}, {0, 0, 0},
      0, 0, 0, 0, 0, 0, 0, 0, 0, "", "",}
index 071a7b92ba0ada4426636b59816cc98bc498c871..baa3fc9dbe78f4b85d1546c38685af13a635fc8b 100644 (file)
@@ -2554,7 +2554,7 @@ ask_move_in_off(struct combat *off, struct combat *def)
     }
 
     if (dam) {
-       left = commdamage(num_mil, dam, V_MILIT);
+       left = commdamage(num_mil, dam, I_MILIT);
        if (left < num_mil) {
            if (left) {
                pr("%d of the mil you were moving were destroyed!\nOnly %d mil made it to %s\n", num_mil - left, left, xyas(def->x, def->y, player->cnum));
index 4d3bfb691dfb05aa4c65a24c38dcb974dc16cd0c..b4637100f1dc60667b4c63e413f2ce45a909de5e 100644 (file)
@@ -1134,9 +1134,9 @@ lnd_mar_one_sector(struct emp_qelem *list, int dir, natid actor,
        }
        /* Note we check would_abandon first because we don't want
           to always have to do these checks */
-       if (would_abandon(&osect, V_CIVIL, 0, &(llp->land))) {
+       if (would_abandon(&osect, I_CIVIL, 0, &(llp->land))) {
            stop = 0;
-           if (!want_to_abandon(&osect, V_CIVIL, 0, &(llp->land))) {
+           if (!want_to_abandon(&osect, I_CIVIL, 0, &(llp->land))) {
                stop = 1;
            }
            /* now check stuff */
index cd2cb116b10c90f22d02b3515ecffcce223a52f9..ed7f9ea3fae0ec477d7afc0958f32b8eda0dcbe4 100644 (file)
@@ -292,7 +292,7 @@ pln_dropoff(struct emp_qelem *list, struct ichrstr *ip, coord tx, coord ty,
               xyas(tx, ty, player->cnum));
            return;
        }
-       if (ip->i_vtype == V_CIVIL && sectp->sct_own != sectp->sct_oldown) {
+       if (ip->i_vtype == I_CIVIL && sectp->sct_own != sectp->sct_oldown) {
            pr("%s is occupied.  Your civilians suffer from identity crisis and die.\n",
               xyas(tx, ty, player->cnum));
            return;
@@ -621,7 +621,7 @@ pln_equip(struct plist *plp, struct ichrstr *ip, int flags, s_char mission)
        own = sect.sct_oldown;
     }
     if (ip) {
-       if (ip->i_vtype == V_CIVIL) {
+       if (ip->i_vtype == I_CIVIL) {
            if (pp->pln_own != own) {
                pr("You don't control those civilians!\n");
                return -1;
index 6c57a0c8fe404b4bc5a6f6c0a2660bb357e22387..cf93745fd53c334d4228c2364cc47a0a5bdfcea7 100644 (file)
@@ -80,7 +80,7 @@ deliver(register struct sctstr *from, struct ichrstr *ip, int dir,
     vtype = ip->i_vtype;
     pack_src = ip->i_pkg[dp->d_pkg];
     mobility = from->sct_mobil / 2;
-    if (vtype == V_CIVIL && from->sct_own != from->sct_oldown) {
+    if (vtype == I_CIVIL && from->sct_own != from->sct_oldown) {
        wu(0, from->sct_own,
           "The conquered populace in %s refuses to relocate!\n",
           ownxy(from));
index 90769cd5843a5f286889649d92bb89c5bfe40b13..1fd1ae3c5bc59c4de0a86aa7351c161663022f95 100644 (file)
@@ -98,13 +98,13 @@ load_it(register struct shpstr *sp, register struct sctstr *psect, int i)
     sect_amt = psect->sct_item[comm];
 
     /* check for disloyal civilians */
-    if (psect->sct_oldown != shipown && comm == V_CIVIL) {
+    if (psect->sct_oldown != shipown && comm == I_CIVIL) {
        wu(0, shipown,
           "Ship #%d - unable to load disloyal civilians at %s.",
           sp->shp_uid, xyas(psect->sct_x, psect->sct_y, psect->sct_own));
        return 0;
     }
-    if (comm == V_CIVIL || comm == V_MILIT)
+    if (comm == I_CIVIL || comm == I_MILIT)
        sect_amt--;             /* leave 1 civ or mil to hold the sector. */
     vship = &mchr[(int)sp->shp_type];
     abs_max = max_amt = vship->m_item[comm];
@@ -133,7 +133,7 @@ load_it(register struct shpstr *sp, register struct sctstr *psect, int i)
 
 
     sp->shp_item[comm] = ship_amt + transfer;
-    if (comm == V_CIVIL || comm == V_MILIT)
+    if (comm == I_CIVIL || comm == I_MILIT)
        sect_amt++;             /*adjustment */
     psect->sct_item[comm] = sect_amt - transfer;
 
@@ -188,14 +188,14 @@ unload_it(register struct shpstr *sp)
        sect_amt = sectp->sct_item[comm];
 
        /* check for disloyal civilians */
-       if (sectp->sct_oldown != shipown && comm == V_CIVIL) {
+       if (sectp->sct_oldown != shipown && comm == I_CIVIL) {
            wu(0, sp->shp_own,
               "Ship #%d - unable to unload civilians into a disloyal sector at %s.",
               sp->shp_uid, xyas(sectp->sct_x, sectp->sct_y,
                                 sectp->sct_own));
            continue;
        }
-       if (comm == V_CIVIL)
+       if (comm == I_CIVIL)
            ship_amt--;         /* This leaves 1 civs on board the ship */
 
        max_amt = min(ship_amt, ITEM_MAX - sect_amt);