summaryrefslogtreecommitdiff
path: root/callback_table.c
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
commit36e31fa41fceb9044d1a4106e6775af7ab04fc8d (patch)
tree7169789e49a59433f674337c2c7505ad5938e746 /callback_table.c
parent3e5ef7319e04711fb29aac135ac6a814af4708a7 (diff)
downloadopenttd-36e31fa41fceb9044d1a4106e6775af7ab04fc8d.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 'callback_table.c')
-rw-r--r--callback_table.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/callback_table.c b/callback_table.c
index 2c9ff3d84..14203a2c3 100644
--- a/callback_table.c
+++ b/callback_table.c
@@ -53,6 +53,8 @@ CommandCallback CcBuildWagon;
CommandCallback CcBuildLoco;
CommandCallback CcCloneTrain;
+CommandCallback CcAI;
+
CommandCallback *_callback_table[] = {
/* 0x00 */ NULL,
/* 0x01 */ CcBuildAircraft,
@@ -79,6 +81,7 @@ CommandCallback *_callback_table[] = {
/* 0x16 */ CcCloneRoadVeh,
/* 0x17 */ CcCloneShip,
/* 0x18 */ CcCloneTrain,
+ /* 0x19 */ CcAI
};
const int _callback_table_count = lengthof(_callback_table);