diff options
author | rubidium <rubidium@openttd.org> | 2010-08-11 14:14:06 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-08-11 14:14:06 +0000 |
commit | ab5b0ceff219a2b12253dbd3e008cf4551608b8a (patch) | |
tree | 015b80c7c79cf97a7de8a1f8d1d82f4577895ea1 /src/tile_map.h | |
parent | 43d6740f2d68af2223796eb2324086be18487b88 (diff) | |
download | openttd-ab5b0ceff219a2b12253dbd3e008cf4551608b8a.tar.xz |
(svn r20446) -Codechange: unify the location of the water class
Diffstat (limited to 'src/tile_map.h')
-rw-r--r-- | src/tile_map.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tile_map.h b/src/tile_map.h index 202ad04e9..7310fc599 100644 --- a/src/tile_map.h +++ b/src/tile_map.h @@ -142,7 +142,7 @@ static inline Owner GetTileOwner(TileIndex tile) assert(!IsTileType(tile, MP_HOUSE)); assert(!IsTileType(tile, MP_INDUSTRY)); - return (Owner)_m[tile].m1; + return (Owner)GB(_m[tile].m1, 0, 5); } /** @@ -162,7 +162,7 @@ static inline void SetTileOwner(TileIndex tile, Owner owner) assert(!IsTileType(tile, MP_HOUSE)); assert(!IsTileType(tile, MP_INDUSTRY)); - _m[tile].m1 = owner; + SB(_m[tile].m1, 0, 5, owner); } /** |