Codefix: Clear m6 more thoroughly when making tiles.

m6 bits 6-7 were previously used to be for bridge above state, but should now be cleared.
This commit is contained in:
Peter Nelson
2025-10-25 17:49:10 +01:00
committed by dP
parent c2d92433c6
commit 7715b9e83e
10 changed files with 17 additions and 14 deletions
+1
View File
@@ -285,6 +285,7 @@ inline void MakeIndustry(Tile t, IndustryID index, IndustryGfx gfx, uint8_t rand
SetIndustryGfx(t, gfx); // m5, part of m6
SetIndustryRandomTriggers(t, {}); // rest of m6
SetWaterClass(t, wc);
SB(t.m6(), 6, 2, 0);
t.m7() = 0;
}