summaryrefslogtreecommitdiff
path: root/src/subsidy_type.h
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-05-23 15:46:00 +0000
committersmatz <smatz@openttd.org>2009-05-23 15:46:00 +0000
commitb2aed51f8e42e0e45d08a65b8883b3fa034d0f4b (patch)
tree3b45fa52ccaffe68d01b5f234afc6b2c927b92bc /src/subsidy_type.h
parentf2317d0d9d74c3f5d14530c14b314ad32d05ef80 (diff)
downloadopenttd-b2aed51f8e42e0e45d08a65b8883b3fa034d0f4b.tar.xz
(svn r16403) -Codechange: move code related to subsidies to separate file
Diffstat (limited to 'src/subsidy_type.h')
-rw-r--r--src/subsidy_type.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/subsidy_type.h b/src/subsidy_type.h
new file mode 100644
index 000000000..bec1a2cd4
--- /dev/null
+++ b/src/subsidy_type.h
@@ -0,0 +1,21 @@
+/* $Id$ */
+
+/** @file subsidy_type.h Types related to subsidies. */
+
+#ifndef SUBSIDY_TYPE_H
+#define SUBSIDY_TYPE_H
+
+#include "cargo_type.h"
+#include "company_type.h"
+
+struct Subsidy {
+ CargoID cargo_type;
+ byte age;
+ /* from and to can either be TownID, StationID or IndustryID */
+ uint16 from;
+ uint16 to;
+};
+
+extern Subsidy _subsidies[MAX_COMPANIES];
+
+#endif /* SUBSIDY_TYPE_H */