]> git.pond.sub.org Git - empserver/commit
(lnd_pathcost): New, factored out of lnd_mobcost().
authorMarkus Armbruster <armbru@pond.sub.org>
Thu, 8 Jun 2006 20:43:13 +0000 (20:43 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Thu, 8 Jun 2006 20:43:13 +0000 (20:43 +0000)
commit55ff194f7f1e0b11f5af654228ee9efb55ff87f5
treec2a9b48e8f587423b881e99129db808db9d9914f
parent5e66e5bdeeb00352ecfbe0d8bdf28dcd82494504
(lnd_pathcost): New, factored out of lnd_mobcost().
(att_reacting_units): Use it.  Fixes overcharging of inefficient
units.  Broken when Empire3 changed land unit mobility use not to
depend on efficiency, except for supply units.
(lnd_sweep): Use it.  No functional change.

(speed_factor): New, factored out of lnd_pathcost() and shp_mobcost().
include/land.h
include/path.h
src/lib/common/move.c
src/lib/subs/attsub.c
src/lib/subs/lndsub.c
src/lib/subs/shpsub.c