forked from mirror/OpenTTD
(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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user