(svn r11265) -Feature: Make more advanced rail types more expensive to build.

This commit is contained in:
maedhros
2007-10-14 21:20:12 +00:00
parent 4276173922
commit 675a826601
7 changed files with 45 additions and 9 deletions

View File

@@ -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;
}