]> git.pond.sub.org Git - empserver/commit
New relations_with()
authorMarkus Armbruster <armbru@pond.sub.org>
Tue, 25 Jan 2011 19:13:41 +0000 (20:13 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 13 Feb 2011 16:48:58 +0000 (17:48 +0100)
commitbb5cd07ce5be7bbb420e26296a3592743a9189f5
tree55d9219e3a69dbbaf51cf09f57645ed3c9413785
parent0c60e574a99c21967c37f3e31b6abddbb6b40e18
New relations_with()

Relations checking with getrel() often needs a special case for "is
same country".  If you forget, you get behavior appropriate for a
neutral foreign country, which is usually very wrong (see commit
16c68eb4 for an example).

Unlike getrel(), relations_with() considers countries allied to
themselves.  Less dangerous.  In fact, allied behavior is typically
just right, so the special case isn't even needed.
include/nat.h
src/lib/common/nat.c