(svn r11265) -Feature: Make more advanced rail types more expensive to build.
This commit is contained in:
@@ -773,7 +773,7 @@ CommandCost DoConvertTunnelBridgeRail(TileIndex tile, RailType totype, bool exec
|
||||
VehicleFromPos(endtile, &endtile, UpdateTrainPowerProc);
|
||||
}
|
||||
|
||||
return CommandCost((length + 1) * (_price.build_rail >> 1));
|
||||
return CommandCost((length + 1) * (RailBuildCost(totype) / 2));
|
||||
} else if (IsBridge(tile) && GetBridgeTransportType(tile) == TRANSPORT_RAIL) {
|
||||
TileIndex endtile = GetOtherBridgeEnd(tile);
|
||||
byte bridge_height = GetBridgeHeight(tile);
|
||||
@@ -805,7 +805,7 @@ CommandCost DoConvertTunnelBridgeRail(TileIndex tile, RailType totype, bool exec
|
||||
}
|
||||
}
|
||||
|
||||
return CommandCost((DistanceManhattan(tile, endtile) + 1) * (_price.build_rail >> 1));
|
||||
return CommandCost((DistanceManhattan(tile, endtile) + 1) * (RailBuildCost(totype) / 2));
|
||||
} else {
|
||||
return CMD_ERROR;
|
||||
}
|
||||
|
Reference in New Issue
Block a user