Committed wrong patch for r9992.

When host drops at that point, just close up shop, and set lobby error.

Thanks to Cyp for noticing.

(2.3 r10003)

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@10009 4a71c877-e1ca-e34f-864e-861f7616d084
master
Buginator 2010-02-25 04:06:46 +00:00 committed by Git SVN Gateway
parent 66d2fb68ec
commit c402fb2f2a
1 changed files with 3 additions and 2 deletions

View File

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