summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_order.hpp
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2009-01-16 00:05:26 +0000
committertruebrain <truebrain@openttd.org>2009-01-16 00:05:26 +0000
commit94dd36d1eceb487616f9f0ea260fbe00d84cc267 (patch)
tree9e3c6b823cc8e282db94a22336d126affeaaac1c /src/ai/api/ai_order.hpp
parent5119132dda807aacb65e2afcce22665e7eedc577 (diff)
downloadopenttd-94dd36d1eceb487616f9f0ea260fbe00d84cc267.tar.xz
(svn r15101) -Change [API CHANGE]: more consistant naming for consts:
INVALID_TOWN_RATING -> TOWN_RATING_INVALID INVALID_TRANSPORT -> TRANSPORT_INVALID INVALID_ORDER -> ORDER_INVALID INVALID_GROUP -> GROUP_INVALID GROUP_ALL/DEFAULT -> ALL/DEFAULT_GROUP VEHICLE_RAIL/ROAD/.. -> VT_RAIL/ROAD/.. MY_COMPANY -> COMPANY_SELF FIRST/LAST/INVALID_COMPANY -> COMPANY_FIRST/LAST/INVALID
Diffstat (limited to 'src/ai/api/ai_order.hpp')
-rw-r--r--src/ai/api/ai_order.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ai/api/ai_order.hpp b/src/ai/api/ai_order.hpp
index fbda26892..c4e9f99be 100644
--- a/src/ai/api/ai_order.hpp
+++ b/src/ai/api/ai_order.hpp
@@ -71,8 +71,8 @@ public:
/** Different constants related to the OrderPosition */
enum OrderPosition {
- CURRENT_ORDER = 0xFF, //!< Constant that gets resolved to the current order.
- INVALID_ORDER = -1, //!< An invalid order.
+ ORDER_CURRENT = 0xFF, //!< Constant that gets resolved to the current order.
+ ORDER_INVALID = -1, //!< An invalid order.
};
/**
@@ -88,7 +88,7 @@ public:
* Resolves the given order index to the correct index for the given vehicle.
* If the order index was CURRENT_ORDER it will be resolved to the index of
* the current order (as shown in the order list). If the order with the
- * given index does not exist it will return INVALID_ORDER.
+ * given index does not exist it will return ORDER_INVALID.
* @param vehicle_id The vehicle to check the order index for.
* @param order_position The order index to resolve.
* @pre AIVehicle::IsValidVehicle(vehicle_id).