summaryrefslogtreecommitdiff
path: root/src/road_map.h
diff options
context:
space:
mode:
authorPeter Nelson <peter1138@openttd.org>2018-07-22 23:47:15 +0100
committerPeterN <peter@fuzzle.org>2018-07-26 13:27:40 +0100
commit5db883fbe9b8ef6171bfafc145a80932c3920504 (patch)
treede3ec131897c708f3fd960e9bc7cb1865d32fe7e /src/road_map.h
parent65548c37a840ca48378180df1bf8857b087f7329 (diff)
downloadopenttd-5db883fbe9b8ef6171bfafc145a80932c3920504.tar.xz
Change: Move rail type bits from m3 to m8.
Diffstat (limited to 'src/road_map.h')
-rw-r--r--src/road_map.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/road_map.h b/src/road_map.h
index 693730294..5b3e6b090 100644
--- a/src/road_map.h
+++ b/src/road_map.h
@@ -579,11 +579,12 @@ static inline void MakeRoadCrossing(TileIndex t, Owner road, Owner tram, Owner r
SetTileType(t, MP_ROAD);
SetTileOwner(t, rail);
_m[t].m2 = town;
- _m[t].m3 = rat;
+ _m[t].m3 = 0;
_m[t].m4 = 0;
_m[t].m5 = ROAD_TILE_CROSSING << 6 | roaddir;
SB(_me[t].m6, 2, 4, 0);
_me[t].m7 = rot << 6 | road;
+ _me[t].m8 = rat;
SetRoadOwner(t, ROADTYPE_TRAM, tram);
}