| 179 | |
| 180 | |
| 181 | static uint32_t GetPlatformInfoHelper(TileIndex tile, bool check_type, bool check_axis, bool centred) |
| 182 | { |
| 183 | int tx = TileX(tile); |
| 184 | int ty = TileY(tile); |
| 185 | int sx = TileX(FindRailStationEnd(tile, TileDiffXY(-1, 0), check_type, check_axis)); |
| 186 | int sy = TileY(FindRailStationEnd(tile, TileDiffXY( 0, -1), check_type, check_axis)); |
| 187 | int ex = TileX(FindRailStationEnd(tile, TileDiffXY( 1, 0), check_type, check_axis)) + 1; |
| 188 | int ey = TileY(FindRailStationEnd(tile, TileDiffXY( 0, 1), check_type, check_axis)) + 1; |
| 189 | |
| 190 | tx -= sx; ex -= sx; |
| 191 | ty -= sy; ey -= sy; |
| 192 | |
| 193 | return GetPlatformInfo(GetRailStationAxis(tile), GetStationGfx(tile), ex, ey, tx, ty, centred); |
| 194 | } |
| 195 | |
| 196 | |
| 197 | static uint32_t GetRailContinuationInfo(TileIndex tile) |
no test coverage detected