src/ai/NoAI/NoAI.cpp
branchnoai
changeset 9444 fd27df7ca2a0
parent 9441 03da911c8d5f
child 9449 8b688e6517d0
--- 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;
+}