(V_CIVIL, V_MILIT, V_SHELL, V_GUN, V_PETROL, V_IRON, V_DUST, V_BAR,
V_FOOD, V_OIL, V_LCM, V_HCM, V_UW, V_RAD, V_ITEM): Remove, use item types instead.
This commit is contained in:
parent
09def8f156
commit
8ef7f35a56
17 changed files with 64 additions and 81 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue