summaryrefslogtreecommitdiff
path: root/src/cargopacket.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-10-06 17:28:06 +0000
committerrubidium <rubidium@openttd.org>2009-10-06 17:28:06 +0000
commite0e5eae1eebf7a7b374743bdbc1bdfb49f764e8f (patch)
treec74cbbc4e19fb942819a2af44e7de807aa79d518 /src/cargopacket.h
parent5f59d0c5b4e85a3bb51936fa05b2c5493f571eca (diff)
downloadopenttd-e0e5eae1eebf7a7b374743bdbc1bdfb49f764e8f.tar.xz
(svn r17721) -Codechange: replace a magic number with a constant
Diffstat (limited to 'src/cargopacket.h')
-rw-r--r--src/cargopacket.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cargopacket.h b/src/cargopacket.h
index 4d66b0943..8bddaf3d4 100644
--- a/src/cargopacket.h
+++ b/src/cargopacket.h
@@ -45,6 +45,8 @@ private:
/** We want this to be saved, right? */
friend const struct SaveLoad *GetCargoPacketDesc();
public:
+ /** Maximum number of items in a single cargo packet. */
+ static const uint16 MAX_COUNT = UINT16_MAX;
TileIndex source_xy; ///< The origin of the cargo (first station in feeder chain)
TileIndex loaded_at_xy; ///< Location where this cargo has been loaded into the vehicle