summaryrefslogtreecommitdiff
path: root/src/station_base.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-09-28 22:00:24 +0000
committerrubidium <rubidium@openttd.org>2010-09-28 22:00:24 +0000
commitb4f6201e940d3cee219e944664b8505638dbad81 (patch)
treeba0ba77de9699d4915bad38056d1ef90be4ba13f /src/station_base.h
parent897bb71621ef72490bd8667ab02355fdb40817fb (diff)
downloadopenttd-b4f6201e940d3cee219e944664b8505638dbad81.tar.xz
(svn r20857) -Fix [FS#3637]: The station with the second highest rating was doubly penalised when distributing cargo. Now the penalty is completely removed and the granularity/precision of the distribution in increased by using fractional cargo. This should make competing stations less "all-or-nothing".
Diffstat (limited to 'src/station_base.h')
-rw-r--r--src/station_base.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/station_base.h b/src/station_base.h
index ca0e598f9..d595379e9 100644
--- a/src/station_base.h
+++ b/src/station_base.h
@@ -42,6 +42,7 @@ struct GoodsEntry {
byte rating;
byte last_speed;
byte last_age;
+ byte amount_fract; ///< Fractional part of the amount in the cargo list
StationCargoList cargo; ///< The cargo packets of cargo waiting in this station
};