summaryrefslogtreecommitdiff
path: root/src/rail_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/rail_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/rail_map.h')
-rw-r--r--src/rail_map.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rail_map.h b/src/rail_map.h
index c8033a311..2431a7920 100644
--- a/src/rail_map.h
+++ b/src/rail_map.h
@@ -525,7 +525,7 @@ static inline void MakeRailNormal(TileIndex t, Owner o, TrackBits b, RailType r)
_m[t].m3 = r;
_m[t].m4 = 0;
_m[t].m5 = RAIL_TILE_NORMAL << 6 | b;
- SB(_m[t].m6, 2, 4, 0);
+ SB(_me[t].m6, 2, 4, 0);
_me[t].m7 = 0;
}
@@ -538,7 +538,7 @@ static inline void MakeRailDepot(TileIndex t, Owner o, DepotID did, DiagDirectio
_m[t].m3 = r;
_m[t].m4 = 0;
_m[t].m5 = RAIL_TILE_DEPOT << 6 | d;
- SB(_m[t].m6, 2, 4, 0);
+ SB(_me[t].m6, 2, 4, 0);
_me[t].m7 = 0;
}