]> git.pond.sub.org Git - empserver/commit
Make depth charges work with just one shell
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 4 May 2008 17:02:15 +0000 (19:02 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 4 May 2008 17:27:31 +0000 (19:27 +0200)
commitcd6d12c4fbd5835ee15f414a2b4392dac009d4e1
tree863cc3a6091d2cd535ccfcf84fdf5866d4cba199
parent66165f34cb4df93ec9d4d87ef7ee4cc12dcb21f2
Make depth charges work with just one shell

Commit a3ad623b (v4.3.12) made depth charging fail when there's just
one shell.  This let players find all submarine uids.  It basically
reopened the loophole closed in commit aa26c53e (v4.2.20).

Fix by making shp_dchrg() with just one shell succeed and return
damage like fire from one gun.
src/lib/subs/landgun.c