1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-19 02:12:37 +01:00

(svn r5108) - Backport from trunk (r5092):

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
This commit is contained in:
Darkvater
2006-06-04 22:02:51 +00:00
parent 4f27e53d17
commit 590cd1d07b
6 changed files with 42 additions and 20 deletions

View File

@@ -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);