summaryrefslogtreecommitdiff
path: root/tile.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-08-23 18:47:04 +0000
committertron <tron@openttd.org>2005-08-23 18:47:04 +0000
commitb45aeb5c365f62fd04d6843efecbe3dc521d8cbb (patch)
tree87cff4a5f0201aacd0256ce38375fbde200eef92 /tile.h
parent9d9ee2fe5668e631fa36b181530285157badb7fa (diff)
downloadopenttd-b45aeb5c365f62fd04d6843efecbe3dc521d8cbb.tar.xz
(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.
Diffstat (limited to 'tile.h')
-rw-r--r--tile.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tile.h b/tile.h
index d145dd72f..4dc3218cd 100644
--- a/tile.h
+++ b/tile.h
@@ -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)