(capi): Do not check capital location if the country

is has NF_SACKED set.
This commit is contained in:
Ron Koenderink 2005-12-19 01:52:13 +00:00
parent e3459cba5d
commit f3303bce1e

View file

@ -61,7 +61,8 @@ capi(void)
} }
if (!found) if (!found)
return RET_FAIL; return RET_FAIL;
if (sect.sct_x == np->nat_xcap && sect.sct_y == np->nat_ycap) { if (!(np->nat_flags & NF_SACKED) &&
sect.sct_x == np->nat_xcap && sect.sct_y == np->nat_ycap) {
pr("%s is already your capital.\n", pr("%s is already your capital.\n",
xyas(sect.sct_x, sect.sct_y, player->cnum)); xyas(sect.sct_x, sect.sct_y, player->cnum));
return RET_FAIL; return RET_FAIL;