Changeset - r18212:83de1fe02070
[Not reviewed]
master
0 1 0
frosch - 13 years ago 2011-10-25 19:21:36
frosch@openttd.org
(svn r23057) -Fix: [NoAI] AIOrder::GetOrderCount() did not hide implicit orders.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/ai/api/ai_order.cpp
Show inline comments
 
@@ -188,13 +188,13 @@ static const Order *ResolveOrder(Vehicle
 
		default: return false;
 
	}
 
}
 

	
 
/* static */ int32 AIOrder::GetOrderCount(VehicleID vehicle_id)
 
{
 
	return AIVehicle::IsValidVehicle(vehicle_id) ? ::Vehicle::Get(vehicle_id)->GetNumOrders() : -1;
 
	return AIVehicle::IsValidVehicle(vehicle_id) ? ::Vehicle::Get(vehicle_id)->GetNumManualOrders() : -1;
 
}
 

	
 
/* static */ TileIndex AIOrder::GetOrderDestination(VehicleID vehicle_id, OrderPosition order_position)
 
{
 
	if (!IsValidVehicleOrder(vehicle_id, order_position)) return INVALID_TILE;
 

	
0 comments (0 inline, 0 general)