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:
Markus Armbruster 2013-01-08 14:41:30 +01:00
parent 3783652d7a
commit f2e5e467c0

View file

@ -50,6 +50,9 @@ capi(void)
return RET_SYN;
if (!player->owner
|| (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;
}
np = getnatp(player->cnum);