From 0f656010c81ac31be8fd59280b427138dce411ff Mon Sep 17 00:00:00 2001 From: frosch Date: Wed, 14 Apr 2010 20:28:37 +0000 Subject: (svn r19637) -Codechange: Pass complete TransportType to CmdBuildTunnel. --- src/ai/api/ai_tunnel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ai/api') diff --git a/src/ai/api/ai_tunnel.cpp b/src/ai/api/ai_tunnel.cpp index 911b4a6fd..65689a513 100644 --- a/src/ai/api/ai_tunnel.cpp +++ b/src/ai/api/ai_tunnel.cpp @@ -77,10 +77,10 @@ static void _DoCommandReturnBuildTunnel1(class AIInstance *instance) uint type = 0; if (vehicle_type == AIVehicle::VT_ROAD) { - type |= (TRANSPORT_ROAD << 9); + type |= (TRANSPORT_ROAD << 8); type |= ::RoadTypeToRoadTypes((::RoadType)AIObject::GetRoadType()); } else { - type |= (TRANSPORT_RAIL << 9); + type |= (TRANSPORT_RAIL << 8); type |= AIRail::GetCurrentRailType(); } -- cgit v1.2.3-70-g09d2