]> git.pond.sub.org Git - empserver/commit
retreat: Don't retreat the current player's ships or land units
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 20 Jan 2014 22:12:31 +0000 (23:12 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 16 Feb 2014 12:19:26 +0000 (13:19 +0100)
commitd1c3529009756a9847ad120f500d72df5030d578
tree39cc5bb7fc25a565d935e6bd108355901fe2f0e0
parentdf8a1ffc1bf77567e4972810d5c729a73fcb42e6
retreat: Don't retreat the current player's ships or land units

The retreat code happily retreats anything, without considering who
owns it.  It reports retreat to the owner by bulletin, even when the
owner is the current player.

Commands shouldn't report to the current player by bulletin, they
should print directly.  Fixable.  However, your ships and land units
retreating from your own actions makes little sense.  Suppress it.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/lib/subs/retreat.c
tests/retreat/01-retreat-1
tests/retreat/final.xdump
tests/retreat/journal.log