]> git.pond.sub.org Git - empserver/commit
Make add always reset the country
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 30 Oct 2011 17:46:24 +0000 (18:46 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Thu, 29 Dec 2011 10:47:05 +0000 (11:47 +0100)
commit6984f9d98271e93c382754ed702c3649e7f15bcf
tree4b782fe74c1248640c141b90038901f050e32b17
parent373f20a8b5b5996fbdc9fef704b976bc77f9b5f5
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.
src/lib/commands/add.c