network error, will shutdown the network in the game

origin
stpohle 21 years ago
parent 140b270a54
commit 2fe2f57247

@ -1,4 +1,4 @@
$Id: ChangeLog,v 1.77 2004/09/12 20:54:24 stpohle Exp $
$Id: ChangeLog,v 1.78 2004/09/12 21:08:11 stpohle Exp $
* NEED TO FIX: Server starts the game soo fast that the
client's ignore the gamestat for a running game.
@ -6,7 +6,7 @@ $Id: ChangeLog,v 1.77 2004/09/12 20:54:24 stpohle Exp $
* FINISH TEAM MODE.
* NEED TO FIX: Network Version Error. There is no
- fixed: Network Version Error. There is no
possible Escape.
- fixed: Single Player Menu there was no ESC key working

@ -1,4 +1,4 @@
/* $Id: multiwait.c,v 1.42 2004/05/25 22:22:29 stpohle Exp $
/* $Id: multiwait.c,v 1.43 2004/09/12 21:08:11 stpohle Exp $
multiwait.c - this manages only the network screen where
everyone have to select it's players and where even the basic chat is inside
*/
@ -249,7 +249,7 @@ void wait_for_players () {
chat.active = 1;
s_calctimesync ();
} while (bman.state == GS_wait);
} while (bman.state == GS_wait && bman.sock != -1);
mw_shutdown ();
};

@ -161,7 +161,7 @@ void host_multiplayer_game () {
/* the loop for the multiplayer games */
void multiplayer_game () {
while (bman.state != GS_startup && bman.state != GS_quit) {
while (bman.state != GS_startup && bman.state != GS_quit && bman.sock != -1) {
/* check players and in_pl lists */
wait_for_players ();

@ -65,6 +65,8 @@ do_error (struct pkg_error *data, _net_addr * addr)
{
d_printf ("Network Error from %s:%s : '%s'\n", addr->host, addr->port, data->text);
network_shutdown ();
menu_displaymessage ("Network Error", "Got Error from: %s:%s\nMessage:%s", addr->host, addr->port, data->text);
if (data->nr == 1)
return -1;

Loading…
Cancel
Save