diff options
author | Peter Nelson <peter1138@openttd.org> | 2019-01-14 23:33:42 +0000 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2019-01-19 23:11:17 +0000 |
commit | 81330b8d6edee68c38717462737fbfca6420701d (patch) | |
tree | ed4e0e34930a5e6f28b5d275c27f6ccb50a2ba63 /src/pathfinder/pathfinder_type.h | |
parent | 1c725fce47d60907bbf2224c7bdc28607fcf6017 (diff) | |
download | openttd-81330b8d6edee68c38717462737fbfca6420701d.tar.xz |
Change: Add path cache for ships.
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 73031d5c8..0ecf00bbd 100644 --- a/src/pathfinder/pathfinder_type.h +++ b/src/pathfinder/pathfinder_type.h @@ -40,6 +40,9 @@ static const int YAPF_TILE_CORNER_LENGTH = 71; */ 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; + /** * Helper container to find a depot */ |