equal
deleted
inserted
replaced
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); |