From a53f13cff633962108db52da09d4f54ae6946f10 Mon Sep 17 00:00:00 2001 From: J0an Josep Date: Fri, 27 Jul 2018 22:02:16 +0200 Subject: Fix #6805: Clear some m8 bits when making some tiles. --- src/clear_map.h | 2 ++ src/station_map.h | 1 + 2 files changed, 3 insertions(+) (limited to 'src') 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; } /** diff --git a/src/station_map.h b/src/station_map.h index 7ca9bd720..e591787e3 100644 --- a/src/station_map.h +++ b/src/station_map.h @@ -542,6 +542,7 @@ static inline void MakeStation(TileIndex t, Owner o, StationID sid, StationType SB(_me[t].m6, 2, 1, 0); SB(_me[t].m6, 3, 3, st); _me[t].m7 = 0; + _me[t].m8 = 0; } /** -- cgit v1.2.3-54-g00ecf