changeset 3080:8e809a9ecb5c draft

(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
author tron <tron@openttd.org>
date Fri, 24 Feb 2006 20:52:32 +0000
parents f8cc8db3273f
children 26684891c976
files void.h
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;
 }