hedgewars/uAI.pas
branchhedgeroid
changeset 6328 d14adf1c7721
parent 6027 302408e45052
parent 6317 83b93a2d2741
child 6336 cf4c65f9cbbe
--- a/hedgewars/uAI.pas	Sat Nov 12 15:48:55 2011 +0100
+++ b/hedgewars/uAI.pas	Sat Nov 12 17:06:49 2011 +0100
@@ -267,8 +267,7 @@
 
       WalkMe:= BackMe;
       Walk(@WalkMe);
-      if (StartTicks > GameTicks - 1500) and not StopThinking then SDL_Delay(1000);
-
+      if (StartTicks > GameTicks - 1500) and (not StopThinking) then SDL_Delay(1000);
       if BestActions.Score < -1023 then
          begin
          BestActions.Count:= 0;
@@ -286,9 +285,7 @@
       end;
 PGear(Me)^.State:= PGear(Me)^.State and not gstHHThinking;
 Think:= 0;
-
-InterlockedDecrement(hasThread);
-
+InterlockedDecrement(hasThread)
 end;
 
 procedure StartThink(Me: PGear);