]> git.pond.sub.org Git - empserver/commit
4.0.2 made land unit mobility costs differ significantly from normal
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 4 Jun 2006 17:41:12 +0000 (17:41 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 4 Jun 2006 17:41:12 +0000 (17:41 +0000)
commit5ad86bc7ceaa0e8c78bfddf42ceb1015c91a906d
tree3d41c1173fb4192546e8ee74ca4ef6c6c3f90068
parent6ab05ae8a1c5807642e750bb00ff8a578774af58
4.0.2 made land unit mobility costs differ significantly from normal
move costs, but failed to make A* use these costs.  This broke land
unit path finding.  Fix:
(MOB_ROAD, MOB_MOVE, MOB_MARCH): Split MOB_ROAD into MOB_MOVE and
MOB_MARCH.  Users changed.
(lnd_mobcost, sector_mcost): Move minimum mobcost logic to
sector_mcost(), where it is visible to A*.  Also fixes unit reaction
path cost.

(lnd_path): Fix confusing message: don't claim there's no path when
all we really know is that there's no railway.
include/sect.h
src/lib/commands/sinf.c
src/lib/common/move.c
src/lib/common/path.c
src/lib/subs/attsub.c
src/lib/subs/lndsub.c
src/lib/subs/move.c
src/lib/subs/retreat.c
src/lib/subs/supply.c
src/lib/update/deliver.c
src/lib/update/finish.c