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
commitaf9463187b968e749d3680f214063df631b5cc44 (patch)
tree247620cddb3225921d20bc682071528e9a531227
parentdd26e1f19762cb231bc09d59adae222bbf429c61 (diff)
downloadopenttd-af9463187b968e749d3680f214063df631b5cc44.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;
}