Permit no-op country name change again

Commit aa5861d1 (v4.3.20) made add, edit and change reject a country
name that is already in use.  Even if it's used by the same country.
Relax that.
This commit is contained in:
Markus Armbruster 2011-10-30 15:43:56 +01:00
parent 9b2e906ea1
commit 062c660e28
5 changed files with 9 additions and 8 deletions

View file

@ -77,7 +77,7 @@ chan(void)
p = getstarg(player->argp[2], "New country name -- ", buf);
if (!p)
return RET_SYN;
if (!check_nat_name(p))
if (!check_nat_name(p, player->cnum))
return RET_FAIL;
player->dolcost += charge;
player->btused += btucost;