diff options
author | frosch <frosch@openttd.org> | 2010-04-14 20:28:37 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-04-14 20:28:37 +0000 |
commit | 0f656010c81ac31be8fd59280b427138dce411ff (patch) | |
tree | 15ba6245a31a82ddd678fb98bf2247be3ac4beb9 /src/ai/api | |
parent | 1177092da650ff539c1d4933737e0bf42a417771 (diff) | |
download | openttd-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.cpp | 4 |
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(); } |