summaryrefslogtreecommitdiff
path: root/src/tree_map.h
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-03-08 16:10:39 +0000
committersmatz <smatz@openttd.org>2009-03-08 16:10:39 +0000
commite124aa8fd62f3260d2a127aab1e9bc6f5a303480 (patch)
tree093e5d2cab6ed85f891e85bb8d9947464dbc8706 /src/tree_map.h
parent7c8474da13d295ddb6224fe66c41e4ba4ac0f050 (diff)
downloadopenttd-e124aa8fd62f3260d2a127aab1e9bc6f5a303480.tar.xz
(svn r15643) -Fix [FS#2711]: be more strict with zeroing unused map array bits
Diffstat (limited to 'src/tree_map.h')
-rw-r--r--src/tree_map.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tree_map.h b/src/tree_map.h
index f63c53f2f..ab2fef701 100644
--- a/src/tree_map.h
+++ b/src/tree_map.h
@@ -274,6 +274,8 @@ static inline void MakeTree(TileIndex t, TreeType type, uint count, uint growth,
_m[t].m3 = type;
_m[t].m4 = 0 << 5 | 0 << 2;
_m[t].m5 = count << 6 | growth;
+ SB(_m[t].m6, 2, 4, 0);
+ _me[t].m7 = 0;
}
#endif /* TREE_MAP_H */