Make capital fail more nicely when sector is unsuitable
The command fails without an explanation then. Change it to print something like "X,Y is not a capital or mountain owned by you."
This commit is contained in:
parent
3783652d7a
commit
f2e5e467c0
1 changed files with 3 additions and 0 deletions
|
@ -50,6 +50,9 @@ capi(void)
|
||||||
return RET_SYN;
|
return RET_SYN;
|
||||||
if (!player->owner
|
if (!player->owner
|
||||||
|| (sect.sct_type != SCT_CAPIT && sect.sct_type != SCT_MOUNT)) {
|
|| (sect.sct_type != SCT_CAPIT && sect.sct_type != SCT_MOUNT)) {
|
||||||
|
pr("%s is not a %s or %s owned by you.\n",
|
||||||
|
xyas(sect.sct_x, sect.sct_y, player->cnum),
|
||||||
|
dchr[SCT_CAPIT].d_name, dchr[SCT_MOUNT].d_name);
|
||||||
return RET_FAIL;
|
return RET_FAIL;
|
||||||
}
|
}
|
||||||
np = getnatp(player->cnum);
|
np = getnatp(player->cnum);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue