(svn r9638) -Feature: Increase cargo types from 12 to 32 and enable newcargo flag in NewGRF loader.

This commit is contained in:
2007-04-15 16:20:35 +00:00
parent 24e95eb2cd
commit 49eb9b6fad
6 changed files with 10 additions and 7 deletions

View File

@@ -2820,7 +2820,9 @@ static const SaveLoad _station_speclist_desc[] = {
static void SaveLoad_STNS(Station *st)
{
SlObject(st, _station_desc);
for (CargoID i = 0; i < NUM_CARGO; i++) {
uint num_cargo = CheckSavegameVersion(55) ? 12 : NUM_CARGO;
for (CargoID i = 0; i < num_cargo; i++) {
SlObject(&st->goods[i], _goods_desc);
}