summaryrefslogtreecommitdiff
path: root/src/tunnel_map.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tunnel_map.h')
-rw-r--r--src/tunnel_map.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/tunnel_map.h b/src/tunnel_map.h
index 87abbea3c..b5e2e8a5d 100644
--- a/src/tunnel_map.h
+++ b/src/tunnel_map.h
@@ -9,7 +9,7 @@
#include "rail_type.h"
#include "road_type.h"
#include "transport_type.h"
-#include "tile_map.h"
+#include "road_map.h"
/**
@@ -50,9 +50,12 @@ static inline void MakeRoadTunnel(TileIndex t, Owner o, DiagDirection d, RoadTyp
SetTileType(t, MP_TUNNELBRIDGE);
SetTileOwner(t, o);
_m[t].m2 = 0;
- _m[t].m3 = r;
+ _m[t].m3 = 0;
_m[t].m4 = 0;
_m[t].m5 = TRANSPORT_ROAD << 2 | d;
+ SetRoadOwner(t, ROADTYPE_ROAD, o);
+ if (o != OWNER_TOWN) SetRoadOwner(t, ROADTYPE_TRAM, o);
+ SetRoadTypes(t, r);
}
/**