diff options
author | rubidium <rubidium@openttd.org> | 2007-08-26 13:55:36 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-08-26 13:55:36 +0000 |
commit | d5bc4d8b2af357567792d22c16f9591115dae389 (patch) | |
tree | a1ad1c541e93eb8285d8b94ff26ffc3a974a4489 /src/station.h | |
parent | 182283a67ce4c28cc47c9b978f8c9b9075538ef4 (diff) | |
download | openttd-d5bc4d8b2af357567792d22c16f9591115dae389.tar.xz |
(svn r10981) -Fix [FS#1156] (r10970): stations gave ratings for accepted cargo too.
Diffstat (limited to 'src/station.h')
-rw-r--r-- | src/station.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/station.h b/src/station.h index 5790c0c6a..5f48abec2 100644 --- a/src/station.h +++ b/src/station.h @@ -24,15 +24,20 @@ DECLARE_OLD_POOL(RoadStop, RoadStop, 5, 2000) static const byte INITIAL_STATION_RATING = 175; struct GoodsEntry { + enum AcceptancePickup { + ACCEPTANCE, + PICKUP + }; + GoodsEntry() : - acceptance(false), + acceptance_pickup(0), days_since_pickup(255), rating(INITIAL_STATION_RATING), last_speed(0), last_age(255) {} - bool acceptance; + byte acceptance_pickup; byte days_since_pickup; byte rating; byte last_speed; |