summaryrefslogtreecommitdiff
path: root/src/cargo_type.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cargo_type.h')
-rw-r--r--src/cargo_type.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cargo_type.h b/src/cargo_type.h
index 7b7168a10..402e81c1b 100644
--- a/src/cargo_type.h
+++ b/src/cargo_type.h
@@ -22,7 +22,7 @@
typedef byte CargoID;
/** Available types of cargo */
-enum CargoTypes {
+enum CargoType {
/* Temperate */
CT_PASSENGERS = 0,
CT_COAL = 1,
@@ -70,6 +70,10 @@ enum CargoTypes {
CT_INVALID = 0xFF, ///< Invalid cargo type.
};
+typedef uint32 CargoTypes;
+
+static const CargoTypes ALL_CARGOTYPES = (CargoTypes)UINT32_MAX;
+
/** Class for storing amounts of cargo */
struct CargoArray {
private: