summaryrefslogtreecommitdiff
path: root/src/cargotype.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2007-03-15 22:48:46 +0000
committerpeter1138 <peter1138@openttd.org>2007-03-15 22:48:46 +0000
commit99577265deda433fa0ea7cd29ed26b82743e3762 (patch)
tree3901cf2cea5227ca77ac4f7909fad5b61a08dbe2 /src/cargotype.h
parent78b4c42f17fc1815960eeed3e6e56423e3d22ed8 (diff)
downloadopenttd-99577265deda433fa0ea7cd29ed26b82743e3762.tar.xz
(svn r9236) -Codechange: Add 'town effect' attribute to cargo types. This will be used to specify how the cargo behaves wrt towns, instead of relying on fixed cargo IDs.
Diffstat (limited to 'src/cargotype.h')
-rw-r--r--src/cargotype.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/cargotype.h b/src/cargotype.h
index 03ccf421e..e2574a080 100644
--- a/src/cargotype.h
+++ b/src/cargotype.h
@@ -8,6 +8,15 @@
typedef uint32 CargoLabel;
+enum TownEffect {
+ TE_NONE,
+ TE_PASSENGERS,
+ TE_MAIL,
+ TE_GOODS,
+ TE_WATER,
+ TE_FOOD,
+};
+
struct CargoSpec {
uint8 bitnum;
@@ -20,7 +29,7 @@ struct CargoSpec {
uint8 transit_days[2];
bool is_freight;
- uint8 substitutetowngrowth;
+ TownEffect town_effect; ///< The effect this cargo type has on towns
uint16 multipliertowngrowth;
uint8 callbackflags;