Called whenever I want to leave the game
| 3452 | |
| 3453 | // Called whenever I want to leave the game |
| 3454 | void MultiLeaveGame() { |
| 3455 | mprintf(0, "I'm leaving the netgame!\n"); |
| 3456 | |
| 3457 | CallGameDLL(EVT_GAME_DISCONNECTED, &DLLInfo); |
| 3458 | |
| 3459 | if ((Players[Player_num].flags & PLAYER_FLAGS_DYING) || (Players[Player_num].flags & PLAYER_FLAGS_DEAD)) |
| 3460 | EndPlayerDeath(Player_num); |
| 3461 | |
| 3462 | // Cancel all incoming file transfers |
| 3463 | |
| 3464 | Multi_bail_ui_menu = true; |
| 3465 | MultiSendLeaveGame(); |
| 3466 | |
| 3467 | CallMultiDLL(MT_EVT_GAME_OVER); |
| 3468 | MultiCloseGame(); |
| 3469 | |
| 3470 | SetFunctionMode(MENU_MODE); |
| 3471 | if (Netgame.local_role == LR_SERVER) { |
| 3472 | // gspy_EndGame(); |
| 3473 | } |
| 3474 | |
| 3475 | ScoreAPIGameOver(); |
| 3476 | NetPlayers[Player_num].flags &= ~NPF_CONNECTED; |
| 3477 | } |
| 3478 | |
| 3479 | // Releases a missile that belongs to a player |
| 3480 | void MultiDoReleaseTimeoutMissile(uint8_t *data) { |
no test coverage detected