mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r12845) -Change: use YAPF for fairly old savegames from before YAPF was introduced.
This commit is contained in:
parent
2d860049a7
commit
39a715f1f3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user