equal
deleted
inserted
replaced
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 {$IFDEF SDL13} |
323 ThinkThread := SDL_CreateThread(@Think{$IFDEF SDL13}, nil{$ENDIF}, Me); |
324 ThinkThread := SDL_CreateThread(@Think, nil, Me); |
|
325 {$ELSE} |
|
326 ThinkThread := SDL_CreateThread(@Think, Me); |
|
327 {$ENDIF} |
324 {$ENDIF} |
328 AddFileLog('Thread started'); |
325 AddFileLog('Thread started'); |
329 end; |
326 end; |
330 |
327 |
331 procedure ProcessBot; |
328 procedure ProcessBot; |