* Start placing a rail bridge. * @param tile Position of the first tile of the bridge. * @param w Rail toolbar window. */
| 292 | * @param w Rail toolbar window. |
| 293 | */ |
| 294 | static void PlaceRail_Bridge(TileIndex tile, Window *w) |
| 295 | { |
| 296 | if (IsBridgeTile(tile)) { |
| 297 | TileIndex other_tile = GetOtherTunnelBridgeEnd(tile); |
| 298 | Point pt = {0, 0}; |
| 299 | w->OnPlaceMouseUp(VPM_X_OR_Y, DDSP_BUILD_BRIDGE, pt, other_tile, tile); |
| 300 | } else { |
| 301 | VpStartPlaceSizing(tile, VPM_X_OR_Y, DDSP_BUILD_BRIDGE); |
| 302 | } |
| 303 | } |
| 304 | |
| 305 | /** Command callback for building a tunnel */ |
| 306 | void CcBuildRailTunnel(Commands, const CommandCost &result, TileIndex tile) |
no test coverage detected