]> git.pond.sub.org Git - empserver/commitdiff
relations: Move relations state from struct natstr to relatstr
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 31 Oct 2016 17:05:07 +0000 (18:05 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 6 Aug 2017 18:09:22 +0000 (20:09 +0200)
Relations state is relatively bulky: it's a big chunk of struct
natstr, and adds 200 bytes per country to xdump nat.

Relations change rarely.  Rewriting it to disk on every nation update
and retransmitting it in every xdump nat is wasteful.

To avoid this waste, move relations state to its own struct relatstr.

This is of course an xdump compatibility break.  We're not maintaining
xdump compatibility in this release.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>

No differences found