]> git.pond.sub.org Git - empserver/commit
Fix fire not to disclose retreat and wipe out target shell use
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 4 May 2008 19:58:29 +0000 (21:58 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Mon, 5 May 2008 04:53:33 +0000 (06:53 +0200)
commitfe5b26658d92a53cee1ed0fe20f3f54c46d4e42c
tree00c988c8ff5c89d278e902ca17197fd6a7ac1541
parentaae77430bfee53dea27308757ffc5f814bfbbbf1
Fix fire not to disclose retreat and wipe out target shell use

multifire() clobbered any changes to the target ship or sector made by
defend().  This let the target fire back for free.

multifire() retreated the target ship before reporting its location to
the player.  This disclosed its new location.

Fix by damaging and retreating the target after calling defend().
src/lib/commands/mfir.c