summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-04-23 00:16:21 +0000
committerrubidium <rubidium@openttd.org>2008-04-23 00:16:21 +0000
commit39a715f1f339b388fae891c7b9180ddf66f59e16 (patch)
tree8e3252c8380721ef24c36dc809935764ec53ae0b /src/openttd.cpp
parent2d860049a741eeeebac6ff3fb3b829cad967670c (diff)
downloadopenttd-39a715f1f339b388fae891c7b9180ddf66f59e16.tar.xz
(svn r12845) -Change: use YAPF for fairly old savegames from before YAPF was introduced.
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index 5a1b3e238..6ef326ecd 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -2415,13 +2415,13 @@ bool AfterLoadGame()
}
/* 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);