(arm): Fix trading block message.
(disarm): Recipient must be allied.
This commit is contained in:
parent
9837bf0a40
commit
36fbf37bb8
1 changed files with 7 additions and 1 deletions
|
@ -73,7 +73,7 @@ arm(void)
|
||||||
}
|
}
|
||||||
if (opt_MARKET) {
|
if (opt_MARKET) {
|
||||||
if (ontradingblock(EF_PLANE, &pl)) {
|
if (ontradingblock(EF_PLANE, &pl)) {
|
||||||
pr("You cannot disarm %s while it is on the trading block!\n",
|
pr("You cannot arm %s while it is on the trading block!\n",
|
||||||
prplane(&pl));
|
prplane(&pl));
|
||||||
return RET_FAIL;
|
return RET_FAIL;
|
||||||
}
|
}
|
||||||
|
@ -154,6 +154,12 @@ disarm(void)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
getsect(nuke.nuk_x, nuke.nuk_y, §);
|
getsect(nuke.nuk_x, nuke.nuk_y, §);
|
||||||
|
if (!player->owner
|
||||||
|
&& getrel(getnatp(sect.sct_own), player->cnum) != ALLIED) {
|
||||||
|
pr("Disarming %s in sector %s requires an alliance!\n",
|
||||||
|
prplane(&pl), xyas(sect.sct_x, sect.sct_y, player->cnum));
|
||||||
|
continue;
|
||||||
|
}
|
||||||
snprintf(buf, sizeof(buf), "unloaded in your %s at %s",
|
snprintf(buf, sizeof(buf), "unloaded in your %s at %s",
|
||||||
dchr[sect.sct_type].d_name,
|
dchr[sect.sct_type].d_name,
|
||||||
xyas(sect.sct_x, sect.sct_y, sect.sct_own));
|
xyas(sect.sct_x, sect.sct_y, sect.sct_own));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue