MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / BuildBridge

Method BuildBridge

src/bridge_gui.cpp:112–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110 }
111
112 void BuildBridge(BridgeType type)
113 {
114 switch (this->transport_type) {
115 case TRANSPORT_RAIL: _last_railbridge_type = type; break;
116 case TRANSPORT_ROAD: _last_roadbridge_type = type; break;
117 default: break;
118 }
119 Command<CMD_BUILD_BRIDGE>::Post(STR_ERROR_CAN_T_BUILD_BRIDGE_HERE, CcBuildBridge,
120 this->end_tile, this->start_tile, this->transport_type, type, this->road_rail_type);
121 }
122
123 /** Sort the builable bridges */
124 void SortBridgeList()

Callers 2

OnKeyPressMethod · 0.95
OnClickMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected