* Callback to start placing a bridge. * @param tile Start tile of the bridge. */
| 122 | * @param tile Start tile of the bridge. |
| 123 | */ |
| 124 | static void PlaceRoad_Bridge(TileIndex tile, Window *w) |
| 125 | { |
| 126 | if (IsBridgeTile(tile)) { |
| 127 | TileIndex other_tile = GetOtherTunnelBridgeEnd(tile); |
| 128 | Point pt = {0, 0}; |
| 129 | w->OnPlaceMouseUp(VPM_X_OR_Y, DDSP_BUILD_BRIDGE, pt, other_tile, tile); |
| 130 | } else { |
| 131 | VpStartPlaceSizing(tile, VPM_X_OR_Y, DDSP_BUILD_BRIDGE); |
| 132 | } |
| 133 | } |
| 134 | |
| 135 | /** |
| 136 | * Callback executed after a build road tunnel command has been called. |
no test coverage detected