empserver/include
Markus Armbruster 5ea0d19c20 Fix automatic supply of defending and reacting units
Being in supply is relevant for defending and reacting units.  The
code used has_supply() to check that.

Contrary to its name, has_supply() does not check whether the land
unit has enough supplies to be in supply, but whether it has or could
draw enough.  So, defending and reacting units did not actually draw
any missing supplies.

Fix that in get_dlist() and att_reacting_units() by calling
resupply_all(), then checking with new lnd_in_supply() instead of
has_supply().  The fix of att_reacting_units() is complicated by the
fact that it is also used in the strength command, and should keep not
drawing supplies there.

Rename has_supply() to lnd_could_be_supplied().  Replace its uses
immediately after resupply_all() by lnd_in_supply().
2009-02-17 19:30:35 +01:00
..
budg.h Update copyright notice 2009-02-08 09:33:18 +01:00
com.h Update copyright notice 2009-02-08 09:33:18 +01:00
combat.h Update copyright notice 2009-02-08 09:33:18 +01:00
commands.h Update copyright notice 2009-02-08 09:33:18 +01:00
commodity.h Update copyright notice 2009-02-08 09:33:18 +01:00
damage.h Update copyright notice 2009-02-08 09:33:18 +01:00
distribute.h Update copyright notice 2009-02-08 09:33:18 +01:00
econfig-spec.h Update copyright notice 2009-02-08 09:33:18 +01:00
empio.h Update copyright notice 2009-02-08 09:33:18 +01:00
empobj.h Update copyright notice 2009-02-08 09:33:18 +01:00
empthread.h Update copyright notice 2009-02-08 09:33:18 +01:00
file.h Update copyright notice 2009-02-08 09:33:18 +01:00
game.h Store game down flag in the game table 2009-02-08 14:18:04 +01:00
ioqueue.h Update copyright notice 2009-02-08 09:33:18 +01:00
item.h Update copyright notice 2009-02-08 09:33:18 +01:00
journal.h Update copyright notice 2009-02-08 09:33:18 +01:00
land.h Update copyright notice 2009-02-08 09:33:18 +01:00
loan.h Update copyright notice 2009-02-08 09:33:18 +01:00
lost.h Update copyright notice 2009-02-08 09:33:18 +01:00
lwp.h Update copyright notice 2009-02-08 09:33:18 +01:00
map.h Update copyright notice 2009-02-08 09:33:18 +01:00
match.h Update copyright notice 2009-02-08 09:33:18 +01:00
misc.h Update copyright notice 2009-02-08 09:33:18 +01:00
mission.h Update copyright notice 2009-02-08 09:33:18 +01:00
nat.h Update copyright notice 2009-02-08 09:33:18 +01:00
news.h Update copyright notice 2009-02-08 09:33:18 +01:00
nsc.h Update copyright notice 2009-02-08 09:33:18 +01:00
nuke.h Update copyright notice 2009-02-08 09:33:18 +01:00
optlist.h Update copyright notice 2009-02-08 09:33:18 +01:00
path.h Update copyright notice 2009-02-08 09:33:18 +01:00
plague.h Update copyright notice 2009-02-08 09:33:18 +01:00
plane.h Update copyright notice 2009-02-08 09:33:18 +01:00
player.h Avoid repeated hours and game down status notifications 2009-02-08 14:59:26 +01:00
power.h Update copyright notice 2009-02-08 09:33:18 +01:00
product.h Update copyright notice 2009-02-08 09:33:18 +01:00
proto.h Update copyright notice 2009-02-08 09:33:18 +01:00
prototypes.h Fix automatic supply of defending and reacting units 2009-02-17 19:30:35 +01:00
queue.h Update copyright notice 2009-02-08 09:33:18 +01:00
retreat.h Update copyright notice 2009-02-08 09:33:18 +01:00
sect.h Update copyright notice 2009-02-08 09:33:18 +01:00
server.h Update copyright notice 2009-02-08 09:33:18 +01:00
service.h Update copyright notice 2009-02-08 09:33:18 +01:00
ship.h Update copyright notice 2009-02-08 09:33:18 +01:00
tel.h Factor out code to read mailboxes, and make read more robust 2009-02-08 14:21:15 +01:00
trade.h Update copyright notice 2009-02-08 09:33:18 +01:00
treaty.h Update copyright notice 2009-02-08 09:33:18 +01:00
types.h Update copyright notice 2009-02-08 09:33:18 +01:00
unit.h Update copyright notice 2009-02-08 09:33:18 +01:00
update.h Update copyright notice 2009-02-08 09:33:18 +01:00
version.h Update copyright notice 2009-02-08 09:33:18 +01:00
xdump.h Update copyright notice 2009-02-08 09:33:18 +01:00
xy.h Update copyright notice 2009-02-08 09:33:18 +01:00