Check if the vehicle is compatible with the specified tile */
| 3062 | |
| 3063 | /* Check if the vehicle is compatible with the specified tile */ |
| 3064 | static inline bool CheckCompatibleRail(const Train *v, TileIndex tile) |
| 3065 | { |
| 3066 | return IsTileOwner(tile, v->owner) && |
| 3067 | (!v->IsFrontEngine() || v->compatible_railtypes.Test(GetRailType(tile))); |
| 3068 | } |
| 3069 | |
| 3070 | /** Data structure for storing engine speed changes of an acceleration type. */ |
| 3071 | struct AccelerationSlowdownParams { |
no test coverage detected