Broadcast NET_HOST_DROPPED on host dropped in NET_fillBUffer()

(2.3 r9992)

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10001 4a71c877-e1ca-e34f-864e-861f7616d084
master
Buginator 2010-02-24 05:13:20 +00:00 committed by Git SVN Gateway
parent ae3e6e80a7
commit 66d2fb68ec
1 changed files with 2 additions and 0 deletions

View File

@ -1368,6 +1368,8 @@ static BOOL NET_fillBuffer(NETBUFSOCKET* bs, SocketSet* socket_set)
tcp_socket = NULL;
//Game is pretty much over --should just end everything when HOST dies.
NetPlay.isHostAlive = false;
NETbeginEncode(NET_HOST_DROPPED, NET_ALL_PLAYERS);
NETend();
}
socketClose(bs->socket);
bs->socket = NULL;