summaryrefslogtreecommitdiff
path: root/src/landscape.h
diff options
context:
space:
mode:
authormaedhros <maedhros@openttd.org>2007-03-20 13:47:00 +0000
committermaedhros <maedhros@openttd.org>2007-03-20 13:47:00 +0000
commit48f2bf9bb1bd7b8859d3527c6c205386471cc4e4 (patch)
treea58aa837d70b430e5ab2ea0f71158e3b6032453b /src/landscape.h
parent7812f7fd0ac617a9df41730e6770519154bc5344 (diff)
downloadopenttd-48f2bf9bb1bd7b8859d3527c6c205386471cc4e4.tar.xz
(svn r9371) -Feature: Add support for variable snow lines in the arctic climate, supplied
by newgrf files. When this is enabled forests cannot be built below the highest snow line, and farms can't be built above it. Houses still use the _opt.snow_line so they are all consistent, so to make them respect the snowline you may want to use some newhouses features as well.
Diffstat (limited to 'src/landscape.h')
-rw-r--r--src/landscape.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/landscape.h b/src/landscape.h
new file mode 100644
index 000000000..5cfe80edf
--- /dev/null
+++ b/src/landscape.h
@@ -0,0 +1,19 @@
+/* $Id$ */
+
+/** @file landscape.h */
+
+enum {
+ SNOW_LINE_MONTHS = 12,
+ SNOW_LINE_DAYS = 32,
+};
+
+struct SnowLine {
+ byte table[SNOW_LINE_MONTHS][SNOW_LINE_DAYS];
+ byte highest_value;
+};
+
+bool IsSnowLineSet(void);
+void SetSnowLine(byte table[SNOW_LINE_MONTHS][SNOW_LINE_DAYS]);
+byte GetSnowLine(void);
+byte HighestSnowLine(void);
+void ClearSnowLine(void);