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 | a0d37ea7b9e26c7f918883262160e76f004e7e8f (patch) | |
tree | a1ad1c541e93eb8285d8b94ff26ffc3a974a4489 /src/station.h | |
parent | 36c5b4e1ef8f15cc6a79447bc95cffef82d2eb32 (diff) | |
download | openttd-a0d37ea7b9e26c7f918883262160e76f004e7e8f.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; |