diff -r 4c9f93632d0b -r 6967c52c78c5 src/ai/api/ai_controller.cpp --- a/src/ai/api/ai_controller.cpp Mon Jun 30 10:46:20 2008 +0000 +++ b/src/ai/api/ai_controller.cpp Mon Jun 30 12:15:10 2008 +0000 @@ -49,7 +49,6 @@ #include "ai_marine.hpp.sq" #include "ai_order.hpp.sq" #include "ai_road.hpp.sq" -#include "ai_settings.hpp.sq" #include "ai_sign.hpp.sq" #include "ai_station.hpp.sq" #include "ai_stationlist.hpp.sq" @@ -65,6 +64,12 @@ #include "ai_vehicle.hpp.sq" #include "ai_vehiclelist.hpp.sq" +/* static */ void AIController::SetCommandDelay(int ticks) +{ + if (ticks <= 0) return; + AIObject::SetDoCommandDelay(ticks); +} + /* static */ void AIController::Sleep(int ticks) { if (ticks <= 0) { @@ -135,7 +140,6 @@ SQAIMarine_Register(this->engine); SQAIOrder_Register(this->engine); SQAIRoad_Register(this->engine); - SQAISettings_Register(this->engine); SQAISign_Register(this->engine); SQAIStation_Register(this->engine); SQAIStationList_Register(this->engine); @@ -200,6 +204,7 @@ if (this->engine->MethodExists(*this->SQ_instance, "constructor")) { this->engine->CallMethod(*this->SQ_instance, "constructor"); } + /* When that is done, start the Start() function */ this->engine->CallMethod(*this->SQ_instance, "Start"); }