summaryrefslogtreecommitdiff
path: root/src/clear_map.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2014-09-21 11:23:33 +0000
committerrubidium <rubidium@openttd.org>2014-09-21 11:23:33 +0000
commit982f5a6aa2f600106f9bd292ebefcef52e6e65e6 (patch)
tree781d2ce0c99ac2261c600ef0a0b427a86ce3ffbc /src/clear_map.h
parent18b98afabdc04874942b451b281ad28be967d1ae (diff)
downloadopenttd-982f5a6aa2f600106f9bd292ebefcef52e6e65e6.tar.xz
(svn r26878) -Change: move m6 to TileExtended to keep Tile 8 bytes and thus better alignable
Diffstat (limited to 'src/clear_map.h')
-rw-r--r--src/clear_map.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/clear_map.h b/src/clear_map.h
index db638ca6c..bd48c079a 100644
--- a/src/clear_map.h
+++ b/src/clear_map.h
@@ -228,7 +228,7 @@ static inline uint GetFence(TileIndex t, DiagDirection side)
case DIAGDIR_SE: return GB(_m[t].m4, 2, 3);
case DIAGDIR_SW: return GB(_m[t].m4, 5, 3);
case DIAGDIR_NE: return GB(_m[t].m3, 5, 3);
- case DIAGDIR_NW: return GB(_m[t].m6, 2, 3);
+ case DIAGDIR_NW: return GB(_me[t].m6, 2, 3);
}
}
@@ -247,7 +247,7 @@ static inline void SetFence(TileIndex t, DiagDirection side, uint h)
case DIAGDIR_SE: SB(_m[t].m4, 2, 3, h); break;
case DIAGDIR_SW: SB(_m[t].m4, 5, 3, h); break;
case DIAGDIR_NE: SB(_m[t].m3, 5, 3, h); break;
- case DIAGDIR_NW: SB(_m[t].m6, 2, 3, h); break;
+ case DIAGDIR_NW: SB(_me[t].m6, 2, 3, h); break;
}
}
@@ -287,7 +287,7 @@ static inline void MakeField(TileIndex t, uint field_type, IndustryID industry)
_m[t].m3 = field_type;
_m[t].m4 = 0 << 5 | 0 << 2;
SetClearGroundDensity(t, CLEAR_FIELDS, 3);
- SB(_m[t].m6, 2, 4, 0);
+ SB(_me[t].m6, 2, 4, 0);
_me[t].m7 = 0;
}