1
0
Fork 0

(svn r12845) -Change: use YAPF for fairly old savegames from before YAPF was introduced.

release/0.7
rubidium 2008-04-23 00:16:21 +00:00
parent 2d860049a7
commit 39a715f1f3
1 changed files with 2 additions and 2 deletions

View File

@ -2415,13 +2415,13 @@ bool AfterLoadGame()
} }
/* Convert old PF settings to new */ /* 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; _patches.pathfinder_for_trains = VPF_YAPF;
} else { } else {
_patches.pathfinder_for_trains = (_patches.new_pathfinding_all ? VPF_NPF : VPF_NTP); _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; _patches.pathfinder_for_roadvehs = VPF_YAPF;
} else { } else {
_patches.pathfinder_for_roadvehs = (_patches.new_pathfinding_all ? VPF_NPF : VPF_OPF); _patches.pathfinder_for_roadvehs = (_patches.new_pathfinding_all ? VPF_NPF : VPF_OPF);