(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
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue