diff options
author | rubidium <rubidium@openttd.org> | 2010-09-28 22:00:24 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-09-28 22:00:24 +0000 |
commit | b4f6201e940d3cee219e944664b8505638dbad81 (patch) | |
tree | ba0ba77de9699d4915bad38056d1ef90be4ba13f /src/saveload | |
parent | 897bb71621ef72490bd8667ab02355fdb40817fb (diff) | |
download | openttd-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/saveload')
-rw-r--r-- | src/saveload/saveload.cpp | 3 | ||||
-rw-r--r-- | src/saveload/station_sl.cpp | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/saveload/saveload.cpp b/src/saveload/saveload.cpp index 101cc412e..fdf3b16ad 100644 --- a/src/saveload/saveload.cpp +++ b/src/saveload/saveload.cpp @@ -212,8 +212,9 @@ * 147 20621 * 148 20659 * 149 20832 + * 150 20857 */ -extern const uint16 SAVEGAME_VERSION = 149; ///< current savegame version of OpenTTD +extern const uint16 SAVEGAME_VERSION = 150; ///< current savegame version of OpenTTD SavegameType _savegame_type; ///< type of savegame we are loading diff --git a/src/saveload/station_sl.cpp b/src/saveload/station_sl.cpp index 72d7c7ecf..1be9b417e 100644 --- a/src/saveload/station_sl.cpp +++ b/src/saveload/station_sl.cpp @@ -238,6 +238,7 @@ const SaveLoad *GetGoodsDesc() SLE_VAR(GoodsEntry, last_age, SLE_UINT8), SLEG_CONDVAR( _cargo_feeder_share, SLE_FILE_U32 | SLE_VAR_I64, 14, 64), SLEG_CONDVAR( _cargo_feeder_share, SLE_INT64, 65, 67), + SLE_CONDVAR(GoodsEntry, amount_fract, SLE_UINT8, 150, SL_MAX_VERSION), SLE_CONDLST(GoodsEntry, cargo.packets, REF_CARGO_PACKET, 68, SL_MAX_VERSION), SLE_END() |