summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-02-24 20:52:32 +0000
committertron <tron@openttd.org>2006-02-24 20:52:32 +0000
commit494fd4ed3418a11a61c652a1d57573e1e6c22b14 (patch)
tree247620cddb3225921d20bc682071528e9a531227
parent00a16eedccb33490529f43e5b364212371c65070 (diff)
downloadopenttd-494fd4ed3418a11a61c652a1d57573e1e6c22b14.tar.xz
(svn r3669) Really wipe all data when making a void tile
Thanks to Belugas, egladil and Rubidium for their inspiration and hard work, which all this stuff is based on
-rw-r--r--void.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/void.h b/void.h
index 711859fa2..22043399a 100644
--- a/void.h
+++ b/void.h
@@ -3,4 +3,11 @@
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;
}