]> git.pond.sub.org Git - empserver/commit
commands: Always put ship or land unit before retreating it
authorMarkus Armbruster <armbru@pond.sub.org>
Mon, 12 Jan 2015 21:19:32 +0000 (22:19 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Mon, 2 Mar 2015 07:20:51 +0000 (08:20 +0100)
commitf4d8d64bb34dee75cb2485c130e125fdd3980c18
treee613d2bb03a82a25941ff9e7046aeeba4c44acf9
parent32b611eb8da85a30d00b7ef040bc5ebf85ae8ac9
commands: Always put ship or land unit before retreating it

boar() puts before retreating, the other callers afterwards.  Subtle
difference, because putting resets the owner of the dead to POGO.

Until the commit before previous, retreat didn't fully work after put.
Now it does.  The subtle difference between boar() and the other
callers still exists.  It's better to do it the same everywhere, as
subtle differences invite bugs.  Since changing boar() is not
practical, change the others.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/lib/commands/bomb.c
src/lib/commands/laun.c
src/lib/commands/mfir.c
src/lib/commands/torp.c