Make add always reset the country
Before, add reset the country only when adding a player or a visitor. When adding a deity or deleting a country, it set just nat_cnam, nat_pnam and nat_state. Has always been that way. Because of that, a newly minted deity country could inherit all kinds of crap from a previous user of its country number: origin, realms, relations, telegrams, ... Harmless if the country number has never been used before, which is how add is generally used. When adding a deity country, initial levels (start_education, ...) now apply, relations start NEUTRAL instead of AT_WAR, and the usual initial nation flags are set. Reset on delete as well, just to get rid of the special case.
This commit is contained in:
parent
373f20a8b5
commit
6984f9d982
1 changed files with 1 additions and 6 deletions
|
@ -112,12 +112,7 @@ add(void)
|
|||
}
|
||||
strcpy(natp->nat_cnam, cntryname);
|
||||
strcpy(natp->nat_pnam, pname);
|
||||
if (stat == STAT_NEW || stat == STAT_VIS)
|
||||
nat_reset(natp, stat, 0, 0);
|
||||
else {
|
||||
natp->nat_stat = stat;
|
||||
pr("No special initializations done...\n");
|
||||
}
|
||||
putnat(natp);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue