(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
This commit is contained in:
smatz
2008-01-09 23:00:59 +00:00
parent 6c954cad5f
commit f44a9a5d5b
16 changed files with 643 additions and 244 deletions

View File

@@ -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.