diff options
author | rubidium <rubidium@openttd.org> | 2011-12-28 19:48:04 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-12-28 19:48:04 +0000 |
commit | 8d125a60ce2d97be1ce05c713cb3cdcc248a36dd (patch) | |
tree | 3087cbbefc1cbaca5c2f350f3780d6a639a32423 /src/command_type.h | |
parent | 660e5b286fe98d4cb4b80f4d5e834ac76df6f8a8 (diff) | |
download | openttd-8d125a60ce2d97be1ce05c713cb3cdcc248a36dd.tar.xz |
(svn r23683) -Fix [FS#4912]-ish: when fitting another engine the cargo capacity of wagons could become lower, causing them to contain more than they should. This caused the cargo transfer from the replaced parts to put even more stuff in the already full wagon. Prevent this from happening by reducing the amount of cargo in the vehicle to the capacity when moving vehicles/wagons around, or when autoreplacing
Diffstat (limited to 'src/command_type.h')
-rw-r--r-- | src/command_type.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/command_type.h b/src/command_type.h index 152f66618..406f58364 100644 --- a/src/command_type.h +++ b/src/command_type.h @@ -318,9 +318,10 @@ enum DoCommandFlag { DC_NO_TEST_TOWN_RATING = 0x020, ///< town rating does not disallow you from building DC_BANKRUPT = 0x040, ///< company bankrupts, skip money check, skip vehicle on tile check in some cases DC_AUTOREPLACE = 0x080, ///< autoreplace/autorenew is in progress, this shall disable vehicle limits when building, and ignore certain restrictions when undoing things (like vehicle attach callback) - DC_ALL_TILES = 0x100, ///< allow this command also on MP_VOID tiles - DC_NO_MODIFY_TOWN_RATING = 0x200, ///< do not change town rating - DC_FORCE_CLEAR_TILE = 0x400, ///< do not only remove the object on the tile, but also clear any water left on it + DC_NO_CARGO_CAP_CHECK = 0x100, ///< when autoreplace/autorenew is in progress, this shall prevent truncating the amount of cargo in the vehicle to prevent testing the command to remove cargo + DC_ALL_TILES = 0x200, ///< allow this command also on MP_VOID tiles + DC_NO_MODIFY_TOWN_RATING = 0x400, ///< do not change town rating + DC_FORCE_CLEAR_TILE = 0x800, ///< do not only remove the object on the tile, but also clear any water left on it }; DECLARE_ENUM_AS_BIT_SET(DoCommandFlag) |