(capi): Do not check capital location if the country
is has NF_SACKED set.
This commit is contained in:
parent
e3459cba5d
commit
f3303bce1e
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue