mirror of https://github.com/OpenTTD/OpenTTD.git
Fix: Set invalid road and tram types for rail tunnel ends
This commit is contained in:
parent
954d0b4e5b
commit
706c47265e
|
@ -10,6 +10,7 @@
|
||||||
#ifndef TUNNEL_MAP_H
|
#ifndef TUNNEL_MAP_H
|
||||||
#define TUNNEL_MAP_H
|
#define TUNNEL_MAP_H
|
||||||
|
|
||||||
|
#include "rail_map.h"
|
||||||
#include "road_map.h"
|
#include "road_map.h"
|
||||||
|
|
||||||
|
|
||||||
|
@ -79,7 +80,9 @@ static inline void MakeRailTunnel(TileIndex t, Owner o, DiagDirection d, RailTyp
|
||||||
_m[t].m5 = TRANSPORT_RAIL << 2 | d;
|
_m[t].m5 = TRANSPORT_RAIL << 2 | d;
|
||||||
SB(_me[t].m6, 2, 4, 0);
|
SB(_me[t].m6, 2, 4, 0);
|
||||||
_me[t].m7 = 0;
|
_me[t].m7 = 0;
|
||||||
_me[t].m8 = r;
|
_me[t].m8 = 0;
|
||||||
|
SetRailType(t, r);
|
||||||
|
SetRoadTypes(t, INVALID_ROADTYPE, INVALID_ROADTYPE);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* TUNNEL_MAP_H */
|
#endif /* TUNNEL_MAP_H */
|
||||||
|
|
Loading…
Reference in New Issue