src/openttd.cpp
branch0.6
changeset 10323 57d8fd25473e
parent 9203 55b0289562a8
child 10364 40889da45fc9
equal deleted inserted replaced
9357:bafe57f3402a 10323:57d8fd25473e
  2400 				}
  2400 				}
  2401 			}
  2401 			}
  2402 		}
  2402 		}
  2403 
  2403 
  2404 		/* Convert old PF settings to new */
  2404 		/* Convert old PF settings to new */
  2405 		if (_patches.yapf.rail_use_yapf) {
  2405 		if (_patches.yapf.rail_use_yapf || CheckSavegameVersion(28)) {
  2406 			_patches.pathfinder_for_trains = VPF_YAPF;
  2406 			_patches.pathfinder_for_trains = VPF_YAPF;
  2407 		} else {
  2407 		} else {
  2408 			_patches.pathfinder_for_trains = (_patches.new_pathfinding_all ? VPF_NPF : VPF_NTP);
  2408 			_patches.pathfinder_for_trains = (_patches.new_pathfinding_all ? VPF_NPF : VPF_NTP);
  2409 		}
  2409 		}
  2410 
  2410 
  2411 		if (_patches.yapf.road_use_yapf) {
  2411 		if (_patches.yapf.road_use_yapf || CheckSavegameVersion(28)) {
  2412 			_patches.pathfinder_for_roadvehs = VPF_YAPF;
  2412 			_patches.pathfinder_for_roadvehs = VPF_YAPF;
  2413 		} else {
  2413 		} else {
  2414 			_patches.pathfinder_for_roadvehs = (_patches.new_pathfinding_all ? VPF_NPF : VPF_OPF);
  2414 			_patches.pathfinder_for_roadvehs = (_patches.new_pathfinding_all ? VPF_NPF : VPF_OPF);
  2415 		}
  2415 		}
  2416 
  2416