summaryrefslogtreecommitdiff
path: root/src/settings_type.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-12-13 10:48:44 +0000
committerrubidium <rubidium@openttd.org>2009-12-13 10:48:44 +0000
commit472e5501fa99b9db5c1ebccadf929e56e59fefdd (patch)
tree168696f40e69790495f936179cfa332faea5c3f7 /src/settings_type.h
parent3cfcae07e2732a11005da79dc0a113b22d83951b (diff)
downloadopenttd-472e5501fa99b9db5c1ebccadf929e56e59fefdd.tar.xz
(svn r18481) -Codechange: unify the curve pathfinder penalty defaults; 0.01 tile won't make a dent, 3 tiles might be a bit too much
-Feature-ish: make maximum pathfinder penalties for finding depots customisable, also increase it slightly to 20 tiles worth of penalties.
Diffstat (limited to 'src/settings_type.h')
-rw-r--r--src/settings_type.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/settings_type.h b/src/settings_type.h
index fcbf40fbb..851e495b7 100644
--- a/src/settings_type.h
+++ b/src/settings_type.h
@@ -208,6 +208,7 @@ struct NPFSettings {
* of not being perfect anymore.
*/
uint32 npf_max_search_nodes;
+ uint32 maximum_go_to_depot_penalty; ///< What is the maximum penalty that may be endured for going to a depot
uint32 npf_rail_firstred_penalty; ///< the penalty for when the first signal is red (and it is not an exit or combo signal)
uint32 npf_rail_firstred_exit_penalty; ///< the penalty for when the first signal is red (and it is an exit or combo signal)
@@ -231,6 +232,7 @@ struct NPFSettings {
struct YAPFSettings {
bool disable_node_optimization; ///< whether to use exit-dir instead of trackdir in node key
uint32 max_search_nodes; ///< stop path-finding when this number of nodes visited
+ uint32 maximum_go_to_depot_penalty; ///< What is the maximum penalty that may be endured for going to a depot
bool ship_use_yapf; ///< use YAPF for ships
bool road_use_yapf; ///< use YAPF for road
bool rail_use_yapf; ///< use YAPF for rail