diff options
author | belugas <belugas@openttd.org> | 2007-01-11 02:05:13 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2007-01-11 02:05:13 +0000 |
commit | 5f9c89173498401fca62af1623db357f6f34342b (patch) | |
tree | 35400c488d5fac84250bbc2df5031789ffa75050 /src/clear_map.h | |
parent | 2ea3531c240f19330464e6babcdc0caaed0fad67 (diff) | |
download | openttd-5f9c89173498401fca62af1623db357f6f34342b.tar.xz |
(svn r8050) -Codechange: Rename map member extra to m6, since its usage has been widden.
Only doc landscape_grid.html has been updated, landscape.html will be done latter.
-CodeChange: Replace a direct access to m6 with SetTropicZone in InitializeLandscape, as it is the only part of m6 still untouched without the brute-forced m6=0
Diffstat (limited to 'src/clear_map.h')
-rw-r--r-- | src/clear_map.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/clear_map.h b/src/clear_map.h index dd7a15061..88c3f4af0 100644 --- a/src/clear_map.h +++ b/src/clear_map.h @@ -126,7 +126,7 @@ static inline void MakeClear(TileIndex t, ClearGround g, uint density) { /* If this is a non-bridgeable tile, clear the bridge bits while the rest * of the tile information is still here. */ - if (!MayHaveBridgeAbove(t)) SB(_m[t].extra, 6, 2, 0); + if (!MayHaveBridgeAbove(t)) SB(_m[t].m6, 6, 2, 0); SetTileType(t, MP_CLEAR); SetTileOwner(t, OWNER_NONE); @@ -134,7 +134,7 @@ static inline void MakeClear(TileIndex t, ClearGround g, uint density) _m[t].m3 = 0; _m[t].m4 = 0 << 5 | 0 << 2; SetClearGroundDensity(t, g, density); - SB(_m[t].extra, 2, 4, 0); + SB(_m[t].m6, 2, 4, 0); ///< Clear the rest of m6, bits 2 to 5 } |