summaryrefslogtreecommitdiff
path: root/src/clear_map.h
diff options
context:
space:
mode:
authorJ0an Josep <juanjo.ng.83@gmail.com>2018-07-27 22:02:16 +0200
committerPatric Stout <truebrain@openttd.org>2018-08-04 08:59:22 +0200
commita53f13cff633962108db52da09d4f54ae6946f10 (patch)
tree54fe31a7e01929a32817afccc020177d48cc997a /src/clear_map.h
parent8c0a6bbc4f12db9dd331482ff1e3c229c60354c8 (diff)
downloadopenttd-a53f13cff633962108db52da09d4f54ae6946f10.tar.xz
Fix #6805: Clear some m8 bits when making some tiles.
Diffstat (limited to 'src/clear_map.h')
-rw-r--r--src/clear_map.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/clear_map.h b/src/clear_map.h
index 76b1e82d0..d24916de3 100644
--- a/src/clear_map.h
+++ b/src/clear_map.h
@@ -269,6 +269,7 @@ static inline void MakeClear(TileIndex t, ClearGround g, uint density)
SetClearGroundDensity(t, g, density); // Sets m5
_me[t].m6 = 0;
_me[t].m7 = 0;
+ _me[t].m8 = 0;
}
@@ -289,6 +290,7 @@ static inline void MakeField(TileIndex t, uint field_type, IndustryID industry)
SetClearGroundDensity(t, CLEAR_FIELDS, 3);
SB(_me[t].m6, 2, 4, 0);
_me[t].m7 = 0;
+ _me[t].m8 = 0;
}
/**