summaryrefslogtreecommitdiff
path: root/src/tile.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/tile.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/tile.h')
-rw-r--r--src/tile.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tile.h b/src/tile.h
index 0de85ac5b..ac7eb93a7 100644
--- a/src/tile.h
+++ b/src/tile.h
@@ -105,7 +105,7 @@ static inline bool IsTileOwner(TileIndex tile, Owner owner)
static inline void SetTropicZone(TileIndex tile, TropicZone type)
{
assert(tile < MapSize());
- SB(_m[tile].extra, 0, 2, type);
+ SB(_m[tile].m6, 0, 2, type);
}
/**
@@ -117,6 +117,6 @@ static inline void SetTropicZone(TileIndex tile, TropicZone type)
static inline TropicZone GetTropicZone(TileIndex tile)
{
assert(tile < MapSize());
- return (TropicZone)GB(_m[tile].extra, 0, 2);
+ return (TropicZone)GB(_m[tile].m6, 0, 2);
}
#endif /* TILE_H */