(svn r23860) -Feature: [NewGRF] Add cargo property 1D to set the capacity multipliers when refitting vehicles, which do not use callback 15.

This commit is contained in:
frosch
2012-01-28 12:08:03 +00:00
parent a60f19ae14
commit 90c53046c7
5 changed files with 51 additions and 50 deletions

View File

@@ -38,7 +38,12 @@ void SetupCargoForClimate(LandscapeID l)
/* Reset and disable all cargo types */
memset(CargoSpec::array, 0, sizeof(CargoSpec::array));
for (CargoID i = 0; i < lengthof(CargoSpec::array); i++) CargoSpec::Get(i)->bitnum = INVALID_CARGO;
for (CargoID i = 0; i < lengthof(CargoSpec::array); i++) {
CargoSpec::Get(i)->bitnum = INVALID_CARGO;
/* Set defaults for newer properties, which old GRFs do not know */
CargoSpec::Get(i)->multiplier = 0x100;
}
_cargo_mask = 0;