summaryrefslogtreecommitdiff
path: root/landscape.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 /landscape.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 'landscape.c')
-rw-r--r--landscape.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/landscape.c b/landscape.c
index 3db8e76a3..31bfe68cb 100644
--- a/landscape.c
+++ b/landscape.c
@@ -382,7 +382,7 @@ void CDECL ModifyTile(TileIndex tile, uint flags, ...)
if (flags & (MP_MAPOWNER|MP_MAPOWNER_CURRENT)) {
byte x = _current_player;
if (flags & MP_MAPOWNER) x = va_arg(va, int);
- _m[tile].owner = x;
+ _m[tile].m1 = x;
}
if (flags & MP_MAP5) {
@@ -436,7 +436,7 @@ void InitializeLandscape(void)
map_size = MapSize();
for (i = 0; i < map_size; i++) {
_m[i].type_height = MP_CLEAR << 4;
- _m[i].owner = OWNER_NONE;
+ _m[i].m1 = OWNER_NONE;
_m[i].m2 = 0;
_m[i].m3 = 0;
_m[i].m4 = 0;