diff options
author | smatz <smatz@openttd.org> | 2008-01-09 23:00:59 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-01-09 23:00:59 +0000 |
commit | f44a9a5d5b468496fe92473e3bbd6a556efabf12 (patch) | |
tree | 3de62d8fa49bd51c2036af4c35d3e035e59db6ea /src/rail.h | |
parent | 6c954cad5f73f20fad3804d16f1852c7b52d3ad7 (diff) | |
download | openttd-f44a9a5d5b468496fe92473e3bbd6a556efabf12.tar.xz |
(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
Diffstat (limited to 'src/rail.h')
-rw-r--r-- | src/rail.h | 9 |
1 files changed, 1 insertions, 8 deletions
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. |