Change: Avoid crashing to the side of a train

When a road vehicle is already running on a multi level crossing, and a train shows up ahead, don't make the road vehicle crash on the side of the train.
This commit is contained in:
SamuXarick
2023-02-20 15:19:39 +00:00
committed by rubidium42
parent 8351b97f52
commit b52b29b1a4
3 changed files with 19 additions and 1 deletions

View File

@@ -65,6 +65,8 @@ int GetTrainStopLocation(StationID station_id, TileIndex tile, const Train *v, i
void GetTrainSpriteSize(EngineID engine, uint &width, uint &height, int &xoffs, int &yoffs, EngineImageType image_type);
bool TrainOnCrossing(TileIndex tile);
/** Variables that are cached to improve performance and such */
struct TrainCache {
/* Cached wagon override spritegroup */