empserver/include
Markus Armbruster 6d83090aad Factor out common torpedo fire code into shp_torp()
This takes care of a number of bugs / inconsistencies:

* Submarines with zero mobility could interdict.  Change to require
  positive mobility.

* Submarines with zero firing range could not interdict.  Fix by
  dropping the test from perform_mission().  No ships in the stock
  game are affected.

* Submarines without capability torp could fire return torpedoes and
  interdict.  Stock sbc, nm and msb were affected by the return fire
  bug.  Closes bug#950936.

* Shell resupply bugs: quiet_bigdef(), fire_torp() and
  perform_mission() resupplied before checking all other requirements
  and could thus get more shells than actually needed.

torp() no longer resupplies shells.  It's hardly worth the bother, and
fire doesn't do it either.
2008-03-14 20:25:38 +01:00
..
budg.h Update copyright notice 2008-01-19 10:15:37 +01:00
com.h Update copyright notice 2008-01-19 10:15:37 +01:00
combat.h Update copyright notice 2008-01-19 10:15:37 +01:00
commands.h Update copyright notice 2008-01-19 10:15:37 +01:00
commodity.h Extend the common header of struct empobj to include uid 2008-03-05 22:48:20 +01:00
damage.h Update copyright notice 2008-01-19 10:15:37 +01:00
distribute.h Update copyright notice 2008-01-19 10:15:37 +01:00
econfig-spec.h Make econfig keys data and info work for relative names 2008-02-07 08:01:54 +01:00
empio.h Update copyright notice 2008-01-19 10:15:37 +01:00
empobj.h Rename emp_obj_chr_name() to empobj_chr_name() 2008-03-14 20:25:09 +01:00
empthread.h Update copyright notice 2008-01-19 10:15:37 +01:00
file.h New ef_truncate() 2008-03-14 20:25:10 +01:00
game.h Extend the common header of struct empobj to include uid 2008-03-05 22:48:20 +01:00
ioqueue.h Update copyright notice 2008-01-19 10:15:37 +01:00
item.h Update copyright notice 2008-01-19 10:15:37 +01:00
journal.h Update copyright notice 2008-01-19 10:15:37 +01:00
land.h New unit stat development functions 2008-03-14 20:25:10 +01:00
loan.h Extend the common header of struct empobj to include uid 2008-03-05 22:48:20 +01:00
lost.h Initialize ef_type and uid automatically in ef_extend() 2008-03-05 22:48:23 +01:00
lwp.h Semaphores are no longer used, remove: 2007-02-08 12:29:16 +00:00
map.h Get rid of src/lib/gen/copy.c 2008-02-03 07:44:20 +01:00
match.h Update copyright notice 2008-01-19 10:15:37 +01:00
misc.h Update copyright notice 2008-01-19 10:15:37 +01:00
mission.h Update copyright notice 2008-01-19 10:15:37 +01:00
nat.h Extend the common header of struct empobj to include uid 2008-03-05 22:48:20 +01:00
news.h Check subscript of rpt[] 2008-03-14 20:25:08 +01:00
nsc.h Clean up initialization of nat_ca[] 2008-02-10 11:40:57 +01:00
nuke.h Extend the common header of struct empobj to include uid 2008-03-05 22:48:20 +01:00
optlist.h Make econfig keys data and info work for relative names 2008-02-07 08:01:54 +01:00
path.h Update copyright notice 2008-01-19 10:15:37 +01:00
plague.h Update copyright notice 2008-01-19 10:15:37 +01:00
plane.h New unit stat development functions 2008-03-14 20:25:10 +01:00
player.h Update copyright notice 2008-01-19 10:15:37 +01:00
power.h Update copyright notice 2008-01-19 10:15:37 +01:00
product.h Update copyright notice 2008-01-19 10:15:37 +01:00
proto.h Update copyright notice 2008-01-19 10:15:37 +01:00
prototypes.h Factor out common fortress fire code into fort_fire() 2008-03-14 20:25:37 +01:00
queue.h Update copyright notice 2008-01-19 10:15:37 +01:00
retreat.h Update copyright notice 2008-01-19 10:15:37 +01:00
sect.h Factor out common fortress fire code into fort_fire() 2008-03-14 20:25:37 +01:00
server.h Update copyright notice 2008-01-19 10:15:37 +01:00
service.h Update copyright notice 2008-01-19 10:15:37 +01:00
ship.h Factor out common torpedo fire code into shp_torp() 2008-03-14 20:25:38 +01:00
tel.h Update copyright notice 2008-01-19 10:15:37 +01:00
trade.h Extend the common header of struct empobj to include uid 2008-03-05 22:48:20 +01:00
treaty.h Extend the common header of struct empobj to include uid 2008-03-05 22:48:20 +01:00
types.h Update copyright notice 2008-01-19 10:15:37 +01:00
unit.h Update copyright notice 2008-01-19 10:15:37 +01:00
update.h Update copyright notice 2008-01-19 10:15:37 +01:00
version.h Update copyright notice 2008-01-19 10:15:37 +01:00
xy.h Update copyright notice 2008-01-19 10:15:37 +01:00