(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

@@ -394,7 +394,7 @@ CommandCost CmdBuildSingleRail(TileIndex tile, uint32 flags, uint32 p1, uint32 p
YapfNotifyTrackLayoutChange(tile, track);
}
return cost.AddCost(_price.build_rail);
return cost.AddCost(RailBuildCost(railtype));
}
/** Remove a single piece of track
@@ -1092,7 +1092,7 @@ static CommandCost DoConvertRail(TileIndex tile, RailType totype, bool exec)
VehicleFromPos(tile, &tile, UpdateTrainPowerProc);
}
return CommandCost(_price.build_rail / 2);
return CommandCost(RailBuildCost(totype) / 2);
}
extern CommandCost DoConvertStationRail(TileIndex tile, RailType totype, bool exec);