diff -r 2a4c4340233d -r 8b688e6517d0 bin/ai/SQNoAI/main.nut --- a/bin/ai/SQNoAI/main.nut Sun Mar 18 00:00:51 2007 +0000 +++ b/bin/ai/SQNoAI/main.nut Sun Mar 18 14:23:26 2007 +0000 @@ -19,16 +19,20 @@ function Start(); function Stop(); + function GameLoop(); +} + +function SQNoAI::Start() +{ + while (!this.stop) { + this.Sleep(1); + this.GameLoop(); + } } /* Define the GameLoop. This is called every tick. */ -function SQNoAI::Start() +function SQNoAI::GameLoop() { - while (!this.stop) { - print("Look at me!" + this.GetTick()); - this.Sleep(50); - } - return; if (this.GetTick() == 1) { if (!this.company.SetCompanyName("SQNoAI")) { this.company.SetCompanyName("SQNoAI " + this.base.Random());