| 553 | } |
| 554 | |
| 555 | void NetClose() |
| 556 | { |
| 557 | if (!sgbNetInited) { |
| 558 | return; |
| 559 | } |
| 560 | |
| 561 | sgbNetInited = FALSE; |
| 562 | nthread_cleanup(); |
| 563 | dthread_cleanup(); |
| 564 | tmsg_cleanup(); |
| 565 | multi_event_handler(FALSE); |
| 566 | SNetLeaveGame(3); |
| 567 | if (gbMaxPlayers > 1) |
| 568 | SDL_Delay(2000); |
| 569 | } |
| 570 | |
| 571 | void multi_event_handler(BOOL add) |
| 572 | { |
no test coverage detected