summaryrefslogtreecommitdiff
path: root/src/ai
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2007-12-12 14:37:35 +0000
committersmatz <smatz@openttd.org>2007-12-12 14:37:35 +0000
commit5acc147c1cc5322ad1f307f4e1143a17cb8f77b3 (patch)
treedb66fb63672eccb83db1f1e2338cd7b2d56150aa /src/ai
parente0646af976337e6ed210b0ea920710613f078fca (diff)
downloadopenttd-5acc147c1cc5322ad1f307f4e1143a17cb8f77b3.tar.xz
(svn r11625) -Codechange: add CO_* enum at some places, add includes of order.h too
Diffstat (limited to 'src/ai')
-rw-r--r--src/ai/trolly/trolly.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ai/trolly/trolly.cpp b/src/ai/trolly/trolly.cpp
index a65371368..3c34a9bac 100644
--- a/src/ai/trolly/trolly.cpp
+++ b/src/ai/trolly/trolly.cpp
@@ -37,6 +37,7 @@
#include "../../vehicle.h"
#include "../../date.h"
#include "../ai.h"
+#include "../../order.h"
// This function is called after StartUp. It is the init of an AI
static void AiNew_State_FirstTime(Player *p)
@@ -1171,7 +1172,7 @@ static void AiNew_State_GiveOrders(Player *p)
assert(p->ainew.state == AI_STATE_GIVE_ORDERS);
if (p->ainew.veh_main_id != INVALID_VEHICLE) {
- AI_DoCommand(0, p->ainew.veh_id + (p->ainew.veh_main_id << 16), 0, DC_EXEC, CMD_CLONE_ORDER);
+ AI_DoCommand(0, p->ainew.veh_id + (p->ainew.veh_main_id << 16), CO_SHARE, DC_EXEC, CMD_CLONE_ORDER);
p->ainew.state = AI_STATE_START_VEHICLE;
return;