| 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() |
no outgoing calls
no test coverage detected