(lnd_mobtype): New.
authorMarkus Armbruster <armbru@pond.sub.org>
Tue, 13 Jun 2006 21:07:44 +0000 (21:07 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 13 Jun 2006 21:07:44 +0000 (21:07 +0000)
commit4e7c993a62e27e4467fc5017f6357ffb63640571
treef573fcc44c4eb504168f32e874c93f3907a213f5
parent2e693275f16254b7bf07d6069b4c6da7a21bbb47
(lnd_mobtype): New.
(lnd_path): Use it.
(lnd_mobcost): Use it, remove last parameter.  Callers changed.  This
fixes mobility use of trains when retreating, both for retreat orders
and for failed morale checks.
(retreat_land1): Fix test for impassable terrain.  Before, trains
could retreat off rail.
(lnd_take_casualty): Test for impassable terrain.  Before, trains
could retreat off rail.
include/land.h
src/lib/subs/attsub.c
src/lib/subs/lndsub.c
src/lib/subs/retreat.c