# HG changeset patch # User rubidium # Date 1182533644 0 # Node ID 5adc45aa7c3cde21e1391231dd3063e7d075daaa # Parent d1c4fa7461c6af013ff128508eae4c346b3ee697 (svn r10269) -Fix [FS#912]: station ratings were shown for all cargos instead of only the cargos that have been transported. diff -r d1c4fa7461c6 -r 5adc45aa7c3c src/station.h --- a/src/station.h Fri Jun 22 17:33:13 2007 +0000 +++ b/src/station.h Fri Jun 22 17:34:04 2007 +0000 @@ -20,7 +20,7 @@ struct GoodsEntry { GoodsEntry() : acceptance(false), - days_since_pickup(0), + days_since_pickup(255), rating(INITIAL_STATION_RATING), last_speed(0), last_age(255) diff -r d1c4fa7461c6 -r 5adc45aa7c3c src/station_cmd.cpp --- a/src/station_cmd.cpp Fri Jun 22 17:33:13 2007 +0000 +++ b/src/station_cmd.cpp Fri Jun 22 17:34:04 2007 +0000 @@ -2944,7 +2944,7 @@ for (CargoID i = 0; i < num_cargo; i++) { GoodsEntry *ge = &st->goods[i]; SlObject(ge, _goods_desc); - if (_waiting_acceptance != 0) { + if (CheckSavegameVersion(68)) { ge->acceptance = HASBIT(_waiting_acceptance, 15); if (GB(_waiting_acceptance, 0, 12) != 0) { /* Don't construct the packet with station here, because that'll fail with old savegames */ @@ -2958,6 +2958,8 @@ cp->days_in_transit = _cargo_days; cp->feeder_share = _cargo_feeder_share; ge->cargo.Append(cp); + } else { + ge->days_since_pickup = 255; } } }