124 |
124 |
125 static inline void MakeClear(TileIndex t, ClearGround g, uint density) |
125 static inline void MakeClear(TileIndex t, ClearGround g, uint density) |
126 { |
126 { |
127 /* If this is a non-bridgeable tile, clear the bridge bits while the rest |
127 /* If this is a non-bridgeable tile, clear the bridge bits while the rest |
128 * of the tile information is still here. */ |
128 * of the tile information is still here. */ |
129 if (!MayHaveBridgeAbove(t)) SB(_m[t].extra, 6, 2, 0); |
129 if (!MayHaveBridgeAbove(t)) SB(_m[t].m6, 6, 2, 0); |
130 |
130 |
131 SetTileType(t, MP_CLEAR); |
131 SetTileType(t, MP_CLEAR); |
132 SetTileOwner(t, OWNER_NONE); |
132 SetTileOwner(t, OWNER_NONE); |
133 _m[t].m2 = 0; |
133 _m[t].m2 = 0; |
134 _m[t].m3 = 0; |
134 _m[t].m3 = 0; |
135 _m[t].m4 = 0 << 5 | 0 << 2; |
135 _m[t].m4 = 0 << 5 | 0 << 2; |
136 SetClearGroundDensity(t, g, density); |
136 SetClearGroundDensity(t, g, density); |
137 SB(_m[t].extra, 2, 4, 0); |
137 SB(_m[t].m6, 2, 4, 0); ///< Clear the rest of m6, bits 2 to 5 |
138 } |
138 } |
139 |
139 |
140 |
140 |
141 static inline void MakeField(TileIndex t, uint field_type, uint16 industry) |
141 static inline void MakeField(TileIndex t, uint field_type, uint16 industry) |
142 { |
142 { |