(svn r19637) -Codechange: Pass complete TransportType to CmdBuildTunnel.

This commit is contained in:
frosch
2010-04-14 20:28:37 +00:00
parent ddef21cb53
commit 0e7653fd7b
4 changed files with 27 additions and 17 deletions

View File

@@ -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();
}