| 33 | } |
| 34 | |
| 35 | void FreeDlg() |
| 36 | { |
| 37 | if (terminating && cleanup_thread_id != SDL_GetThreadID(NULL)) |
| 38 | SDL_Delay(20000); |
| 39 | |
| 40 | terminating = TRUE; |
| 41 | cleanup_thread_id = SDL_GetThreadID(NULL); |
| 42 | |
| 43 | if (gbMaxPlayers > 1) { |
| 44 | if (SNetLeaveGame(3)) |
| 45 | SDL_Delay(2000); |
| 46 | } |
| 47 | |
| 48 | SNetDestroy(); |
| 49 | } |
| 50 | |
| 51 | void DrawDlg(char *pszFmt, ...) |
| 52 | { |
no test coverage detected