summaryrefslogtreecommitdiff
path: root/src/economy_type.h
diff options
context:
space:
mode:
authorPavel Stupnikov <dp@dpointer.org>2020-12-15 01:35:07 +0300
committerGitHub <noreply@github.com>2020-12-14 23:35:07 +0100
commitc9fd85528a804060473364c54248149e96da0508 (patch)
tree0e37667e888e77d11ee51daa5a0c69e4d03e671e /src/economy_type.h
parent68f9925cd4c8b29dbdac301e86bd9fc6f5a7fb27 (diff)
downloadopenttd-c9fd85528a804060473364c54248149e96da0508.tar.xz
Add: new economy "frozen" that stops production changes and industry closures (#8282)
Diffstat (limited to 'src/economy_type.h')
-rw-r--r--src/economy_type.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/economy_type.h b/src/economy_type.h
index 87e448267..842e2711c 100644
--- a/src/economy_type.h
+++ b/src/economy_type.h
@@ -15,6 +15,15 @@
typedef OverflowSafeInt64 Money;
+/** Type of the game economy. */
+enum EconomyType : uint8 {
+ ET_BEGIN = 0,
+ ET_ORIGINAL = 0,
+ ET_SMOOTH = 1,
+ ET_FROZEN = 2,
+ ET_END = 3,
+};
+
/** Data of the economy. */
struct Economy {
Money max_loan; ///< NOSAVE: Maximum possible loan