diff options
author | rubidium <rubidium@openttd.org> | 2014-05-11 18:02:11 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2014-05-11 18:02:11 +0000 |
commit | 89c25b955e636efa46d65ebf5b4782b77f30f764 (patch) | |
tree | df0d3aacb099edb188c2cab71394604569707af8 /src/station_base.h | |
parent | 62378e098b008d41fa4f428b212bc238d33c5aad (diff) | |
download | openttd-89c25b955e636efa46d65ebf5b4782b77f30f764.tar.xz |
(svn r26580) -Codechange: s/GES_PICKUP/GES_RATING/ (it has nothing to do with actual pickup), s/acceptance_pickup/status/ (the enum isn't called GoodEntryStatus for a reason; it's not only acceptance and pickup anymore)
Diffstat (limited to 'src/station_base.h')
-rw-r--r-- | src/station_base.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/station_base.h b/src/station_base.h index a4ad69547..1b97b0258 100644 --- a/src/station_base.h +++ b/src/station_base.h @@ -175,7 +175,7 @@ struct GoodsEntry { * This also indicates, whether a cargo has a rating at the station. * This flag is never cleared. */ - GES_PICKUP, + GES_RATING, /** * Set when a vehicle ever delivered cargo to the station for final delivery. @@ -203,7 +203,7 @@ struct GoodsEntry { }; GoodsEntry() : - acceptance_pickup(0), + status(0), time_since_pickup(255), rating(INITIAL_STATION_RATING), last_speed(0), @@ -214,7 +214,7 @@ struct GoodsEntry { max_waiting_cargo(0) {} - byte acceptance_pickup; ///< Status of this cargo, see #GoodsEntryStatus. + byte status; ///< Status of this cargo, see #GoodsEntryStatus. /** * Number of rating-intervals (up to 255) since the last vehicle tried to load this cargo. @@ -252,18 +252,18 @@ struct GoodsEntry { /** * Reports whether a vehicle has ever tried to load the cargo at this station. - * This does not imply that there was cargo available for loading. Refer to GES_PICKUP for that. + * This does not imply that there was cargo available for loading. Refer to GES_RATING for that. * @return true if vehicle tried to load. */ bool HasVehicleEverTriedLoading() const { return this->last_speed != 0; } /** * Does this cargo have a rating at this station? - * @return true if the cargo has a rating, i.e. pickup has been attempted. + * @return true if the cargo has a rating, i.e. cargo has been moved to the station. */ inline bool HasRating() const { - return HasBit(this->acceptance_pickup, GES_PICKUP); + return HasBit(this->status, GES_RATING); } uint GetSumFlowVia(StationID via) const; |