Mercurial > hg > openttd
changeset 9029:774180fd1ec8 draft
(svn r12845) -Change: use YAPF for fairly old savegames from before YAPF was introduced.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Wed, 23 Apr 2008 00:16:21 +0000 |
parents | 32052f89dbbd |
children | 17520dee2ed1 |
files | src/openttd.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -2415,13 +2415,13 @@ } /* Convert old PF settings to new */ - if (_patches.yapf.rail_use_yapf) { + if (_patches.yapf.rail_use_yapf || CheckSavegameVersion(28)) { _patches.pathfinder_for_trains = VPF_YAPF; } else { _patches.pathfinder_for_trains = (_patches.new_pathfinding_all ? VPF_NPF : VPF_NTP); } - if (_patches.yapf.road_use_yapf) { + if (_patches.yapf.road_use_yapf || CheckSavegameVersion(28)) { _patches.pathfinder_for_roadvehs = VPF_YAPF; } else { _patches.pathfinder_for_roadvehs = (_patches.new_pathfinding_all ? VPF_NPF : VPF_OPF);