(svn r20446) -Codechange: unify the location of the water class

This commit is contained in:
rubidium
2010-08-11 14:14:06 +00:00
parent 2221efd1e8
commit 8975ef1f7b
10 changed files with 91 additions and 59 deletions

View File

@@ -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);
}
/**