From bc4ed3eafd45062068dd397ffd602845d747597a Mon Sep 17 00:00:00 2001 From: smatz Date: Wed, 9 Jan 2008 23:00:59 +0000 Subject: (svn r11802) -Fix [FS#716]: do not crash trains when leaving depot to a very long track -Codechange: use dedicated pathfinder for signal updating, resulting in better performance and possible future improvements --- src/rail.h | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/rail.h') diff --git a/src/rail.h b/src/rail.h index a789b57eb..5f91490c9 100644 --- a/src/rail.h +++ b/src/rail.h @@ -96,14 +96,6 @@ struct RailtypeInfo { }; -/** these are the maximums used for updating signal blocks, and checking if a depot is in a pbs block */ -enum { - NUM_SSD_ENTRY = 256, ///< max amount of blocks - NUM_SSD_STACK = 32, ///< max amount of blocks to check recursively -}; - - - /** * Returns a pointer to the Railtype information for a given railtype * @param railtype the rail type which the information is requested for @@ -188,6 +180,7 @@ static inline Money RailConvertCost(RailType from, RailType to) void *UpdateTrainPowerProc(Vehicle *v, void *data); void DrawTrainDepotSprite(int x, int y, int image, RailType railtype); void DrawDefaultWaypointSprite(int x, int y, RailType railtype); +void *EnsureNoTrainOnTrackProc(Vehicle *v, void *data); /** * Draws overhead wires and pylons for electric railways. -- cgit v1.2.3-54-g00ecf