diff -r 1998ff75321a -r d14adf1c7721 hedgewars/uAI.pas --- 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);