summaryrefslogtreecommitdiff
path: root/src/void_map.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/void_map.h')
-rw-r--r--src/void_map.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/void_map.h b/src/void_map.h
new file mode 100644
index 000000000..552a8c705
--- /dev/null
+++ b/src/void_map.h
@@ -0,0 +1,18 @@
+/* $Id$ */
+
+#ifndef VOID_MAP_H
+#define VOID_MAP_H
+
+static inline void MakeVoid(TileIndex t)
+{
+ SetTileType(t, MP_VOID);
+ SetTileHeight(t, 0);
+ _m[t].m1 = 0;
+ _m[t].m2 = 0;
+ _m[t].m3 = 0;
+ _m[t].m4 = 0;
+ _m[t].m5 = 0;
+ _m[t].extra = 0;
+}
+
+#endif /* VOID_MAP_H */