]> git.pond.sub.org Git - empserver/commit
Change fire to always fire guns when the target is beyond range
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 4 May 2008 17:35:14 +0000 (19:35 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Mon, 5 May 2008 04:52:15 +0000 (06:52 +0200)
commitaae77430bfee53dea27308757ffc5f814bfbbbf1
tree276a0233ac8ec7a275f5db027b0e3607f4817f8e
parentcd6d12c4fbd5835ee15f414a2b4392dac009d4e1
Change fire to always fire guns when the target is beyond range

multifire() drops depth charges if the target is a submarine, else it
fires guns.  It fails if the target is out of range.  But players
could still find out whether the target is a sub then, because depth
charge shell use differs from gun fire shell use.  This loophole
existed before 4.0.6, and was reopened by commit a3ad623b (v4.3.12).

Change multifire() to always use guns if the target is out of range.

While there, treat failure from shp_dchrg() and shp_fire() the same,
so that the player can't distinguish the two cases.  Failure there
should not happen.
src/lib/commands/mfir.c