summaryrefslogtreecommitdiff
path: root/src/bridge_map.h
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2007-01-11 02:05:13 +0000
committerbelugas <belugas@openttd.org>2007-01-11 02:05:13 +0000
commit5f9c89173498401fca62af1623db357f6f34342b (patch)
tree35400c488d5fac84250bbc2df5031789ffa75050 /src/bridge_map.h
parent2ea3531c240f19330464e6babcdc0caaed0fad67 (diff)
downloadopenttd-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/bridge_map.h')
-rw-r--r--src/bridge_map.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bridge_map.h b/src/bridge_map.h
index 1cda0da9d..260917e19 100644
--- a/src/bridge_map.h
+++ b/src/bridge_map.h
@@ -41,7 +41,7 @@ static inline bool MayHaveBridgeAbove(TileIndex t)
static inline bool IsBridgeAbove(TileIndex t)
{
assert(MayHaveBridgeAbove(t));
- return GB(_m[t].extra, 6, 2) != 0;
+ return GB(_m[t].m6, 6, 2) != 0;
}
@@ -70,7 +70,7 @@ static inline DiagDirection GetBridgeRampDirection(TileIndex t)
static inline Axis GetBridgeAxis(TileIndex t)
{
assert(IsBridgeAbove(t));
- return (Axis)(GB(_m[t].extra, 6, 2) - 1);
+ return (Axis)(GB(_m[t].m6, 6, 2) - 1);
}
@@ -121,7 +121,7 @@ uint GetBridgeFoundation(Slope tileh, Axis axis);
static inline void ClearSingleBridgeMiddle(TileIndex t, Axis a)
{
assert(MayHaveBridgeAbove(t));
- CLRBIT(_m[t].extra, 6 + a);
+ CLRBIT(_m[t].m6, 6 + a);
}
@@ -134,7 +134,7 @@ static inline void ClearBridgeMiddle(TileIndex t)
static inline void SetBridgeMiddle(TileIndex t, Axis a)
{
assert(MayHaveBridgeAbove(t));
- SETBIT(_m[t].extra, 6 + a);
+ SETBIT(_m[t].m6, 6 + a);
}