(svn r11603) -Fix [FS#1481]: make price for railtype conversion more realistic

This commit is contained in:
smatz
2007-12-08 19:53:30 +00:00
parent 58b4a981e1
commit dfba33819b
5 changed files with 33 additions and 5 deletions

View File

@@ -1201,7 +1201,7 @@ static CommandCost DoConvertRail(TileIndex tile, RailType totype, bool exec)
VehicleFromPos(tile, &tile, UpdateTrainPowerProc);
}
return CommandCost(RailBuildCost(totype) / 2);
return CommandCost(RailConvertCost(GetRailType(tile), totype) * CountBits(GetTrackBits(tile)));
}
extern CommandCost DoConvertStationRail(TileIndex tile, RailType totype, bool exec);