]> git.pond.sub.org Git - empserver/commit
Fix pin bomb not to report subs when there are none
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 11 May 2008 11:43:26 +0000 (13:43 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 11 May 2008 11:44:29 +0000 (13:44 +0200)
commit286388dcdc0fe6019134d3317b679e7f76855708
tree81f9d72858fcfc16693eea6cf5e514237016cd60
parent221e88f106ea28a2ed282b2edec410f5cc7460c3
Fix pin bomb not to report subs when there are none

pin_bomb() computed the number of foreign subs as number of ships less
number of foreign surface ships.  This counted own surface ships as
subs.

Change it to count foreign subs directly.  Closes #906040.

However, shipsatxy(), the function for counting foreign ships, also
lists them.  Add a parameter to suppress that, and change its callers.
include/prototypes.h
src/lib/commands/bomb.c
src/lib/subs/list.c