Loading

Paste #pyhluoqhz

  1.     void BuildBridge(uint8 i)
  2.     {
  3.         switch ((TransportType)(this->type >> 15)) {
  4.             case TRANSPORT_RAIL: _last_railbridge_type = this->bridges->Get(i)->index; break;
  5.             case TRANSPORT_ROAD: _last_roadbridge_type = this->bridges->Get(i)->index; break;
  6.             default: break;
  7.         }
  8.         DoCommandP(this->end_tile, this->start_tile, this->type | this->bridges->Get(i)->index | (_bridge_cur_road_subtype << 17),
  9.                     CMD_BUILD_BRIDGE | CMD_MSG(STR_ERROR_CAN_T_BUILD_BRIDGE_HERE), CcBuildBridge);
  10.     }

Comments