summaryrefslogtreecommitdiff
path: root/openttd.c
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
commit8b74a95d361cde6715419e90fe25db675a21714d (patch)
tree87cff4a5f0201aacd0256ce38375fbde200eef92 /openttd.c
parentd3066ddeeb1b8364f5ba8c5a924a6725f4a34805 (diff)
downloadopenttd-8b74a95d361cde6715419e90fe25db675a21714d.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 'openttd.c')
-rw-r--r--openttd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openttd.c b/openttd.c
index e506f53f6..32837d142 100644
--- a/openttd.c
+++ b/openttd.c
@@ -1008,9 +1008,9 @@ static void ConvertTownOwner(void)
if (IsLevelCrossing(tile) && _m[tile].m3 & 0x80)
_m[tile].m3 = OWNER_TOWN;
- if (_m[tile].owner & 0x80) SetTileOwner(tile, OWNER_TOWN);
+ if (_m[tile].m1 & 0x80) SetTileOwner(tile, OWNER_TOWN);
} else if (IsTileType(tile, MP_TUNNELBRIDGE)) {
- if (_m[tile].owner & 0x80) SetTileOwner(tile, OWNER_TOWN);
+ if (_m[tile].m1 & 0x80) SetTileOwner(tile, OWNER_TOWN);
}
}
}