summaryrefslogtreecommitdiff
path: root/ai/ai.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-06-04 09:10:24 +0000
committertron <tron@openttd.org>2006-06-04 09:10:24 +0000
commit877c7e34a52874eab1eb7e2a0ed15a007390d1df (patch)
tree7169789e49a59433f674337c2c7505ad5938e746 /ai/ai.h
parent7dff47b7f09d0b9dfbaeaf2445d54075e83e5ed9 (diff)
downloadopenttd-877c7e34a52874eab1eb7e2a0ed15a007390d1df.tar.xz
(svn r5092) -Fix: There was a gross race condition in the AI code which made it pretty random if the AI could give a new vehicle its orders
Diffstat (limited to 'ai/ai.h')
-rw-r--r--ai/ai.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ai/ai.h b/ai/ai.h
index 76e2dc035..ec06b302f 100644
--- a/ai/ai.h
+++ b/ai/ai.h
@@ -11,6 +11,7 @@ typedef struct AICommand {
uint32 p1;
uint32 p2;
uint32 procc;
+ CommandCallback* callback;
char *text;
uint uid;
@@ -46,6 +47,7 @@ void AI_RunGameLoop(void);
void AI_Initialize(void);
void AI_Uninitialize(void);
int32 AI_DoCommand(TileIndex tile, uint32 p1, uint32 p2, uint32 flags, uint procc);
+int32 AI_DoCommandCc(TileIndex tile, uint32 p1, uint32 p2, uint32 flags, uint procc, CommandCallback* callback);
/** Is it allowed to start a new AI.
* This function checks some boundries to see if we should launch a new AI.