summaryrefslogtreecommitdiff
path: root/src/pathfinder/pathfinder_type.h
diff options
context:
space:
mode:
authorPeterN <peter@fuzzle.org>2019-03-08 23:52:45 +0000
committerGitHub <noreply@github.com>2019-03-08 23:52:45 +0000
commit6c6971fb43514c4e4923c2ec3b1fdd9fe852617d (patch)
tree8dcb2138ea406a01392437dbb6312954484dba34 /src/pathfinder/pathfinder_type.h
parentdae35188abdfd070ea833bb50ced79d92481a284 (diff)
downloadopenttd-6c6971fb43514c4e4923c2ec3b1fdd9fe852617d.tar.xz
Add: Road vehicle path cache. (#7261)
Diffstat (limited to 'src/pathfinder/pathfinder_type.h')
-rw-r--r--src/pathfinder/pathfinder_type.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pathfinder/pathfinder_type.h b/src/pathfinder/pathfinder_type.h
index 0ecf00bbd..3740d0390 100644
--- a/src/pathfinder/pathfinder_type.h
+++ b/src/pathfinder/pathfinder_type.h
@@ -43,6 +43,9 @@ static const int YAPF_INFINITE_PENALTY = 1000 * YAPF_TILE_LENGTH;
/** Maximum length of ship path cache */
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;
+
/**
* Helper container to find a depot
*/