summaryrefslogtreecommitdiff
path: root/src/subsidy_type.h
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-07-01 18:45:05 +0000
committersmatz <smatz@openttd.org>2009-07-01 18:45:05 +0000
commit76a50ce94dc7c78d76c309d8a639591fed2a2da8 (patch)
tree342be7030b9760781f886bca89cbe01863985008 /src/subsidy_type.h
parentaaeb53066dff98cac2d66d1f02f545d14c9f650c (diff)
downloadopenttd-76a50ce94dc7c78d76c309d8a639591fed2a2da8.tar.xz
(svn r16714) -Codechange: use pool-like accessors for Subsidy
Diffstat (limited to 'src/subsidy_type.h')
-rw-r--r--src/subsidy_type.h25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/subsidy_type.h b/src/subsidy_type.h
deleted file mode 100644
index 734a9c87c..000000000
--- a/src/subsidy_type.h
+++ /dev/null
@@ -1,25 +0,0 @@
-/* $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 about subsidies, both offered and awarded */
-struct Subsidy {
- CargoID cargo_type; ///< Cargo type involved in this subsidy, CT_INVALID for invalid subsidy
- byte age; ///< Subsidy age; < 12 is unawarded, >= 12 is awarded
- uint16 from; ///< Index of source. Either TownID, IndustryID or StationID, when awarded.
- uint16 to; ///< Index of destination. Either TownID, IndustryID or StationID, when awarded.
-};
-
-extern Subsidy _subsidies[MAX_COMPANIES];
-
-#define FOR_ALL_SUBSIDIES_FROM(var, start) for (var = &_subsidies[start]; var < endof(_subsidies); var++) \
- if (var->cargo_type != CT_INVALID)
-#define FOR_ALL_SUBSIDIES(var) FOR_ALL_SUBSIDIES_FROM(var, 0)
-
-#endif /* SUBSIDY_TYPE_H */