diff options
author | tron <tron@openttd.org> | 2006-02-24 20:52:32 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-02-24 20:52:32 +0000 |
commit | af9463187b968e749d3680f214063df631b5cc44 (patch) | |
tree | 247620cddb3225921d20bc682071528e9a531227 | |
parent | dd26e1f19762cb231bc09d59adae222bbf429c61 (diff) | |
download | openttd-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.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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; } |