]> git.pond.sub.org Git - empserver/commit
retreat: Don't consume a retreat direction that wasn't followed
authorMarkus Armbruster <armbru@pond.sub.org>
Wed, 22 Jan 2014 19:46:53 +0000 (20:46 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 16 Feb 2014 12:19:26 +0000 (13:19 +0100)
commitff826d2582db6ecc5d33df6e38772e99013b802a
treeaba4de27193880e9d3e53075731747c2dd626e15
parent40ec33b09958cd846bf5640ae990f9dd478a2135
retreat: Don't consume a retreat direction that wasn't followed

When a retreating ship or land unit runs into a sector it can't enter,
it stops.  The direction character that led it there is consumed, even
though it could not be followed.  The next retreat will then attempt
to follow the rest of the path.  Don't do that.

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