(svn r2886) Rename the "owner" attribute to "m1", because when it stores an owner it is accessed by [GS]etOwner anyway and when it doesn't store an owner, but arbitrary data, accessing a field called "owner" is confusing.

This commit is contained in:
tron
2005-08-23 18:47:04 +00:00
parent 9d9ee2fe56
commit b45aeb5c36
11 changed files with 51 additions and 51 deletions

4
tile.h
View File

@@ -109,7 +109,7 @@ static inline Owner GetTileOwner(TileIndex tile)
assert(!IsTileType(tile, MP_VOID));
assert(!IsTileType(tile, MP_INDUSTRY));
return _m[tile].owner;
return _m[tile].m1;
}
static inline void SetTileOwner(TileIndex tile, Owner owner)
@@ -119,7 +119,7 @@ static inline void SetTileOwner(TileIndex tile, Owner owner)
assert(!IsTileType(tile, MP_VOID));
assert(!IsTileType(tile, MP_INDUSTRY));
_m[tile].owner = owner;
_m[tile].m1 = owner;
}
static inline bool IsTileOwner(TileIndex tile, Owner owner)