From 0e50a9e7c45fd71c9608aaeb94dbf42840a532cc Mon Sep 17 00:00:00 2001 From: zicodxx Date: Tue, 19 Jul 2011 11:31:08 +0200 Subject: [PATCH] Properly call multi_leave_game() when host leaves multi game to let clients exit smoothly --- CHANGELOG.txt | 4 ++++ main/net_udp.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 24dc3204d..df35e4a2f 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,5 +1,9 @@ D2X-Rebirth Changelog +20110719 +-------- +main/net_udp.c: Properly call multi_leave_game() when host leaves multi game to let clients exit smoothly + 20110716 -------- main/songs.c: Correctly proceed to new Redbook track if songnum != Song_playing (hopefully - to confirm); Using songs_stop_all() in songs_uninit() to clear redundancy; added some notes to functions to shine a bit light on the mess of some functions; Also if there's no escape song, continue level music diff --git a/main/net_udp.c b/main/net_udp.c index 9e54e0316..8b5d00065 100644 --- a/main/net_udp.c +++ b/main/net_udp.c @@ -1256,6 +1256,8 @@ net_udp_disconnect_player(int playernum) if (playernum == 0) // Host has left - Quit game! { + if (Network_status==NETSTAT_PLAYING) + multi_leave_game(); window_set_visible(Game_wind, 0); nm_messagebox(NULL, 1, TXT_OK, "Game was closed by host!"); window_set_visible(Game_wind, 1);