hedgewars/uAI.pas
changeset 11538 00860966354d
parent 11532 bf86c6cb9341
child 11608 ed70d59479d7
equal deleted inserted replaced
11537:de40095f3327 11538:00860966354d
    50         end;
    50         end;
    51     SDL_LockMutex(ThreadLock);
    51     SDL_LockMutex(ThreadLock);
    52     ThinkThread:= nil;
    52     ThinkThread:= nil;
    53     SDL_UnlockMutex(ThreadLock);
    53     SDL_UnlockMutex(ThreadLock);
    54 
    54 
    55     with CurrentHedgehog^ do
    55     if CurrentHedgehog <> nil then
    56         if Gear <> nil then
    56         with CurrentHedgehog^ do
    57             if BotLevel <> 0 then
    57             if Gear <> nil then
    58                 StopMessages(Gear^.Message);
    58                 if BotLevel <> 0 then
       
    59                     StopMessages(Gear^.Message);
    59 
    60 
    60     BestActions.Count:= 0;
    61     BestActions.Count:= 0;
    61     BestActions.Pos:= 0
    62     BestActions.Pos:= 0
    62 end;
    63 end;
    63 
    64