diff options
author | rubidium <rubidium@openttd.org> | 2009-12-13 10:48:44 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-12-13 10:48:44 +0000 |
commit | 472e5501fa99b9db5c1ebccadf929e56e59fefdd (patch) | |
tree | 168696f40e69790495f936179cfa332faea5c3f7 /src/pathfinder/pathfinder_type.h | |
parent | 3cfcae07e2732a11005da79dc0a113b22d83951b (diff) | |
download | openttd-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/pathfinder/pathfinder_type.h')
-rw-r--r-- | src/pathfinder/pathfinder_type.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pathfinder/pathfinder_type.h b/src/pathfinder/pathfinder_type.h index 0bb3f2e5d..5943537c2 100644 --- a/src/pathfinder/pathfinder_type.h +++ b/src/pathfinder/pathfinder_type.h @@ -43,7 +43,7 @@ static const int YAPF_INFINITE_PENALTY = 1000 * YAPF_TILE_LENGTH; */ struct FindDepotData { TileIndex tile; ///< The tile of the depot - uint best_length; ///< The distance towards the depot, or UINT_MAX if not found + uint best_length; ///< The distance towards the depot in penalty, or UINT_MAX if not found bool reverse; ///< True if reversing is necessary for the train to get to this depot /** |