summaryrefslogtreecommitdiff
path: root/src/ai/api
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-04-14 20:28:37 +0000
committerfrosch <frosch@openttd.org>2010-04-14 20:28:37 +0000
commit0f656010c81ac31be8fd59280b427138dce411ff (patch)
tree15ba6245a31a82ddd678fb98bf2247be3ac4beb9 /src/ai/api
parent1177092da650ff539c1d4933737e0bf42a417771 (diff)
downloadopenttd-0f656010c81ac31be8fd59280b427138dce411ff.tar.xz
(svn r19637) -Codechange: Pass complete TransportType to CmdBuildTunnel.
Diffstat (limited to 'src/ai/api')
-rw-r--r--src/ai/api/ai_tunnel.cpp4
1 files changed, 2 insertions, 2 deletions
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();
}