From f2e5e467c0cc9a07be2c8d9908a9a18ec0590bd9 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Tue, 8 Jan 2013 14:41:30 +0100 Subject: [PATCH] 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." --- src/lib/commands/capi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/commands/capi.c b/src/lib/commands/capi.c index 9f9c5828f..b8d788aaa 100644 --- a/src/lib/commands/capi.c +++ b/src/lib/commands/capi.c @@ -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); -- 2.43.0