diff options
author | Jonathan G Rennison <j.g.rennison@gmail.com> | 2020-02-06 21:23:42 +0100 |
---|---|---|
committer | Niels Martin Hansen <nielsm@indvikleren.dk> | 2020-02-07 23:02:10 +0100 |
commit | 1a88fb5c910ed8badc9b7535487ff78fbdc7a38b (patch) | |
tree | a6089403eab4eb03f5cfdb114f69b43c835a8b18 /src/pathfinder/pathfinder_type.h | |
parent | 9e632355f14aef4696730267d1682e7f2ba0f3a9 (diff) | |
download | openttd-1a88fb5c910ed8badc9b7535487ff78fbdc7a38b.tar.xz |
Fix #7592: Do not cache road vehicle path within 8 tiles of destination with multiple entrances
Ported from jgrpp commit 79d5be7e265df3be8b73d484f0c7261b3c23229d
Diffstat (limited to 'src/pathfinder/pathfinder_type.h')
-rw-r--r-- | src/pathfinder/pathfinder_type.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pathfinder/pathfinder_type.h b/src/pathfinder/pathfinder_type.h index f837f4840..eb0381d8a 100644 --- a/src/pathfinder/pathfinder_type.h +++ b/src/pathfinder/pathfinder_type.h @@ -44,6 +44,9 @@ static const int YAPF_SHIP_PATH_CACHE_LENGTH = 32; /** Maximum segments of road vehicle path cache */ static const int YAPF_ROADVEH_PATH_CACHE_SEGMENTS = 8; +/** Distance from destination road stops to not cache any further */ +static const int YAPF_ROADVEH_PATH_CACHE_DESTINATION_LIMIT = 8; + /** * Helper container to find a depot */ |