From 4cebebcf683b079ff010e70b0a0a78c12734933e Mon Sep 17 00:00:00 2001 From: PeterN Date: Mon, 21 May 2018 22:08:39 +0100 Subject: Change: Add CargoTypes type for cargo masks. (#6790) --- src/cargo_type.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/cargo_type.h') 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: -- cgit v1.2.3-54-g00ecf