diff options
author | tron <tron@openttd.org> | 2006-03-05 10:19:33 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-03-05 10:19:33 +0000 |
commit | cc4f5b4e6f8c99eb94dfb5513b4dc807440adf09 (patch) | |
tree | a52b37172cae58e82f096386586bea359126dd70 /void_map.h | |
parent | 5913c3931bbb1ccb8283061a23f83d96c6ed1a38 (diff) | |
download | openttd-cc4f5b4e6f8c99eb94dfb5513b4dc807440adf09.tar.xz |
(svn r3763) Adapt to the new 'map accessors go in foo_map.h'-scheme
Diffstat (limited to 'void_map.h')
-rw-r--r-- | void_map.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/void_map.h b/void_map.h new file mode 100644 index 000000000..22043399a --- /dev/null +++ b/void_map.h @@ -0,0 +1,13 @@ +/* $Id$ */ + +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; +} |