summaryrefslogtreecommitdiff
path: root/ai_pathfinder.c
diff options
context:
space:
mode:
authorhackykid <hackykid@openttd.org>2005-07-04 14:58:55 +0000
committerhackykid <hackykid@openttd.org>2005-07-04 14:58:55 +0000
commitab9c6f126d54f6edd1464c57bf338cf68965e657 (patch)
treec0f8f7ba8535ff0f5e9fd8581b36c737ac10e0b1 /ai_pathfinder.c
parentd07e1a875e1d708505aa6958c7cc9a60fc2490d1 (diff)
downloadopenttd-ab9c6f126d54f6edd1464c57bf338cf68965e657.tar.xz
(svn r2516) - Feature: [pbs] Implement path-based-signalling. This allows multiple trains within the same signal block, provided their paths dont intersect. For this the block must have all exit and entry signals be pbs signals. Place these by ctrl-clicking 4 times on a normal signal.
- Feature: [pbs] Implement autoplacement of pbs blocks, when a block has an entry and an exit pbs signal, covert the entire block to pbs. Can be turned off in the patch settings. - Feature: [pbs] Allow showing of reserved status by making the tracks darker, when the pbs debug level is at least 1.
Diffstat (limited to 'ai_pathfinder.c')
-rw-r--r--ai_pathfinder.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ai_pathfinder.c b/ai_pathfinder.c
index a3ddda982..f26cead73 100644
--- a/ai_pathfinder.c
+++ b/ai_pathfinder.c
@@ -97,6 +97,8 @@ AyStar *new_AyStar_AiPathFinder(int max_tiles_around, Ai_PathFinderInfo *PathFin
result->FoundEndNode = AyStar_AiPathFinder_FoundEndNode;
result->GetNeighbours = AyStar_AiPathFinder_GetNeighbours;
+ result->BeforeExit = NULL;
+
result->free = AyStar_AiPathFinder_Free;
// Set some information