hedgewars/uAI.pas
branchhedgeroid
changeset 6336 cf4c65f9cbbe
parent 6328 d14adf1c7721
child 6338 633af6fec34f
equal deleted inserted replaced
6334:b05d3af9a58e 6336:cf4c65f9cbbe
   318 AddFileLog('Enter Think Thread');
   318 AddFileLog('Enter Think Thread');
   319 {$IFDEF IPHONEOS}
   319 {$IFDEF IPHONEOS}
   320 //TODO: sdl_thread works on device but crashes in simulator, most likely because of outdated toolchain
   320 //TODO: sdl_thread works on device but crashes in simulator, most likely because of outdated toolchain
   321 BeginThread(@Think, Me, ThinkThread);
   321 BeginThread(@Think, Me, ThinkThread);
   322 {$ELSE}
   322 {$ELSE}
   323 ThinkThread := SDL_CreateThread(@Think, Me);
   323 ThinkThread := SDL_CreateThread(@Think, nil, Me);
   324 {$ENDIF}
   324 {$ENDIF}
   325 AddFileLog('Thread started');
   325 AddFileLog('Thread started');
   326 end;
   326 end;
   327 
   327 
   328 procedure ProcessBot;
   328 procedure ProcessBot;