src/rail_cmd.cpp
changeset 8043 08dcb2d81d9d
parent 7991 d6a95a5593ba
child 8077 26a93e5278a9
equal deleted inserted replaced
8042:2cb7583f7346 8043:08dcb2d81d9d
  1199 
  1199 
  1200 		/* update power of train engines on this tile */
  1200 		/* update power of train engines on this tile */
  1201 		VehicleFromPos(tile, &tile, UpdateTrainPowerProc);
  1201 		VehicleFromPos(tile, &tile, UpdateTrainPowerProc);
  1202 	}
  1202 	}
  1203 
  1203 
  1204 	return CommandCost(RailBuildCost(totype) / 2);
  1204 	return CommandCost(RailConvertCost(GetRailType(tile), totype) * CountBits(GetTrackBits(tile)));
  1205 }
  1205 }
  1206 
  1206 
  1207 extern CommandCost DoConvertStationRail(TileIndex tile, RailType totype, bool exec);
  1207 extern CommandCost DoConvertStationRail(TileIndex tile, RailType totype, bool exec);
  1208 extern CommandCost DoConvertStreetRail(TileIndex tile, RailType totype, bool exec);
  1208 extern CommandCost DoConvertStreetRail(TileIndex tile, RailType totype, bool exec);
  1209 extern CommandCost DoConvertTunnelBridgeRail(TileIndex tile, RailType totype, bool exec);
  1209 extern CommandCost DoConvertTunnelBridgeRail(TileIndex tile, RailType totype, bool exec);