diff options
author | yexo <yexo@openttd.org> | 2009-04-20 23:49:27 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2009-04-20 23:49:27 +0000 |
commit | 61d883e7e5bf2cd7d946725017fe4163d640fbb6 (patch) | |
tree | 03a133c9b29e5690f1470e530117c0ee9b05614f /src/ai/api/ai_order.hpp | |
parent | a664a2668cdfc0901ce2bf75b698960fab18d9c0 (diff) | |
download | openttd-61d883e7e5bf2cd7d946725017fe4163d640fbb6.tar.xz |
(svn r16107) -Add [NoAI]: AIOF_STOP_IN_DEPOT to the orderflags in AIOrder to allow stop-in-depot orders
Diffstat (limited to 'src/ai/api/ai_order.hpp')
-rw-r--r-- | src/ai/api/ai_order.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ai/api/ai_order.hpp b/src/ai/api/ai_order.hpp index dd26c819c..8a08b505a 100644 --- a/src/ai/api/ai_order.hpp +++ b/src/ai/api/ai_order.hpp @@ -57,6 +57,8 @@ public: /** Service the vehicle when needed, otherwise skip this order; only for depots. */ AIOF_SERVICE_IF_NEEDED = 1 << 2, + /** Stop in the depot instead of only go there for servicing; only for depots. */ + AIOF_STOP_IN_DEPOT = 1 << 3, /** All flags related to non-stop settings. */ AIOF_NON_STOP_FLAGS = AIOF_NON_STOP_INTERMEDIATE | AIOF_NON_STOP_DESTINATION, @@ -64,6 +66,8 @@ public: AIOF_UNLOAD_FLAGS = AIOF_TRANSFER | AIOF_UNLOAD | AIOF_NO_UNLOAD, /** All flags related to loading. */ AIOF_LOAD_FLAGS = AIOF_FULL_LOAD | AIOF_FULL_LOAD_ANY | AIOF_NO_LOAD, + /** All flags related to depots. */ + AIOF_DEPOT_FLAGS = AIOF_SERVICE_IF_NEEDED | AIOF_STOP_IN_DEPOT, /** For marking invalid order flags */ AIOF_INVALID = 0xFFFF, |