diff -r c29c91993080 -r fd27df7ca2a0 src/ai/NoAI/NoAI.cpp --- a/src/ai/NoAI/NoAI.cpp Fri Mar 16 21:35:01 2007 +0000 +++ b/src/ai/NoAI/NoAI.cpp Fri Mar 16 22:00:07 2007 +0000 @@ -8,9 +8,10 @@ /* virtual */ void NoAI::Start() { - while (true) { + this->stop = false; + while (!stop) { printf("Start NoAI %d\n", this->GetTick()); - this->Sleep(5); + this->Sleep(50); } return; if (this->GetTick() == 1) { @@ -66,3 +67,8 @@ } } } + +/* virtual */ void NoAI::Stop() +{ + this->stop = true; +}