OpenGameCache Send Servermode fixed, had some trouble with the status

origin
stpohle 22 years ago
parent 316d62c990
commit 406e021610

@ -1,4 +1,4 @@
$Id: TODO,v 1.30 2003/12/30 20:28:17 stpohle Exp $
$Id: TODO,v 1.31 2003/12/31 01:09:43 stpohle Exp $
* player position at start up need some little work
it is still happening that player just die because
@ -7,8 +7,6 @@ $Id: TODO,v 1.30 2003/12/30 20:28:17 stpohle Exp $
* check if the player is on a field with
an running explosion
* chat is not working
* gameserver can't see any games.. somehow ipv6
and ipv4 got mixed up

@ -1,4 +1,4 @@
/* $Id: network.c,v 1.48 2003/12/28 19:07:38 stpohle Exp $ */
/* $Id: network.c,v 1.49 2003/12/31 01:09:43 stpohle Exp $ */
/*
network routines.
*/
@ -796,14 +796,23 @@ void send_ogc_update () {
if (PS_IS_used (players[i].state))
j++;
if (bman.state == GS_running)
switch (bman.state) {
case (GS_running):
sprintf (status, "running");
if (bman.state == GS_ready)
break;
case (GS_ready):
sprintf (status, "ready");
if (bman.state == GS_wait)
break;
case (GS_wait):
sprintf (status, "wait");
if (bman.state == GS_update)
break;
case (GS_update):
sprintf (status, "update");
break;
default:
sprintf (status, "error");
break;
}
ogc_sendgamestatus (bman.sock, "BomberClone", VERSION, bman.gamename, j, bman.maxplayer, status);
};

Loading…
Cancel
Save