Make add refuse to touch a country while it's being played
I suspect player code could get terminally confused by country state changing unexpectedly. Not worth the risk.
This commit is contained in:
parent
881b6fbd2b
commit
d2057af7a2
1 changed files with 5 additions and 0 deletions
|
@ -108,6 +108,11 @@ add(void)
|
||||||
pr("Illegal status\n");
|
pr("Illegal status\n");
|
||||||
return RET_SYN;
|
return RET_SYN;
|
||||||
}
|
}
|
||||||
|
if (getplayer(natp->nat_cnum)) {
|
||||||
|
pr("%s (#%d) is logged in!\n",
|
||||||
|
natp->nat_cnam, natp->nat_cnum);
|
||||||
|
return RET_FAIL;
|
||||||
|
}
|
||||||
nat_reset(natp, natp->nat_cnum, cntryname, pname, stat);
|
nat_reset(natp, natp->nat_cnum, cntryname, pname, stat);
|
||||||
putnat(natp);
|
putnat(natp);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue