summaryrefslogtreecommitdiff
path: root/water_map.h
diff options
context:
space:
mode:
Diffstat (limited to 'water_map.h')
-rw-r--r--water_map.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/water_map.h b/water_map.h
new file mode 100644
index 000000000..123e96ae2
--- /dev/null
+++ b/water_map.h
@@ -0,0 +1,27 @@
+/* $Id$ */
+
+#ifndef WATER_MAP_H
+#define WATER_MAP_H
+
+static inline void MakeWater(TileIndex t)
+{
+ SetTileType(t, MP_WATER);
+ SetTileOwner(t, OWNER_WATER);
+ _m[t].m2 = 0;
+ _m[t].m3 = 0;
+ _m[t].m4 = 0;
+ _m[t].m5 = 0;
+}
+
+
+static inline void MakeShore(TileIndex t)
+{
+ SetTileType(t, MP_WATER);
+ SetTileOwner(t, OWNER_WATER);
+ _m[t].m2 = 0;
+ _m[t].m3 = 0;
+ _m[t].m4 = 0;
+ _m[t].m5 = 1;
+}
+
+#endif