]> git.pond.sub.org Git - empserver/commit
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)
commit92693cba65c241b52f9431c03a3a320bd2e0e61d
treeeb2420862b608bd48e02b814f3630cb540ad0073
parentde245459631d2af5eaae3caf6eef19297002ba3d
relations: Move relations state from struct natstr to relatstr

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>
20 files changed:
include/nat.h
include/nsc.h
src/lib/common/nat.c
src/lib/common/nsc.c
src/lib/common/nstreval.c
src/lib/subs/rej.c
tests/actofgod/final.xdump
tests/bridgefall/final.xdump
tests/build/final.xdump
tests/fairland/final.xdump
tests/files/final.xdump
tests/fire/final.xdump
tests/navi-march/final.xdump
tests/retreat/final.xdump
tests/smoke/fairland.xdump
tests/smoke/final.xdump
tests/smoke/journal.log
tests/torpedo/final.xdump
tests/update/final.xdump
tests/version/journal.log