forked from mirror/OpenTTD
(svn r2553) - Fix: [pathfinding] Remove old-old train pathfinder. Enhanced old pathfinder.
- Penalties for red signals and for slopes. - Increased the search depth to work better with large train networks.
This commit is contained in:
@@ -890,7 +890,6 @@ const SettingDesc patch_settings[] = {
|
||||
{"servint_aircraft", SDT_UINT16, (void*)100, &_patches.servint_aircraft, NULL},
|
||||
{"no_servicing_if_no_breakdowns", SDT_BOOL, (void*)0, &_patches.no_servicing_if_no_breakdowns, NULL},
|
||||
|
||||
{"new_pathfinding", SDT_BOOL, (void*)true, &_patches.new_pathfinding, NULL},
|
||||
{"pf_maxlength", SDT_UINT16, (void*)512, &_patches.pf_maxlength, NULL},
|
||||
{"pf_maxdepth", SDT_UINT8, (void*)16, &_patches.pf_maxdepth, NULL},
|
||||
|
||||
@@ -1084,4 +1083,11 @@ void CheckConfig(void)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// Increase old default values for pf_maxdepth and pf_maxlength
|
||||
// to support big networks.
|
||||
if (_patches.pf_maxdepth == 16 && _patches.pf_maxlength == 512) {
|
||||
_patches.pf_maxdepth = 48;
|
||||
_patches.pf_maxlength = 4096;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user