mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-24 12:44:10 +01:00
Remove: NPF and pathfinder change settings
This commit is contained in:
@@ -1889,25 +1889,6 @@ bool AfterLoadGame()
|
||||
if (!Company::IsValidID(GetTileOwner(t))) FixOwnerOfRailTrack(t);
|
||||
}
|
||||
}
|
||||
|
||||
/* Convert old PF settings to new */
|
||||
if (_settings_game.pf.yapf.rail_use_yapf || IsSavegameVersionBefore(SLV_28)) {
|
||||
_settings_game.pf.pathfinder_for_trains = VPF_YAPF;
|
||||
} else {
|
||||
_settings_game.pf.pathfinder_for_trains = VPF_NPF;
|
||||
}
|
||||
|
||||
if (_settings_game.pf.yapf.road_use_yapf || IsSavegameVersionBefore(SLV_28)) {
|
||||
_settings_game.pf.pathfinder_for_roadvehs = VPF_YAPF;
|
||||
} else {
|
||||
_settings_game.pf.pathfinder_for_roadvehs = VPF_NPF;
|
||||
}
|
||||
|
||||
if (_settings_game.pf.yapf.ship_use_yapf) {
|
||||
_settings_game.pf.pathfinder_for_ships = VPF_YAPF;
|
||||
} else {
|
||||
_settings_game.pf.pathfinder_for_ships = VPF_NPF;
|
||||
}
|
||||
}
|
||||
|
||||
if (IsSavegameVersionBefore(SLV_88)) {
|
||||
|
||||
Reference in New Issue
Block a user