wrong number of players fixed

origin
stpohle 22 years ago
parent 8562149287
commit 50cc7024cd

@ -53,7 +53,6 @@ game_init (int argc, char **argv)
map.size.x = 25;
map.size.y = 17;
sprintf (bman.datapath, PACKAGE_DATA_DIR);
printf ("DataPath: %s\n", bman.datapath);
map.map[0] = 0;
map.map_selection = 2;
map.type = -1;

@ -1,4 +1,4 @@
/* $Id: game.c,v 1.53 2003/08/29 23:50:39 stpohle Exp $
/* $Id: game.c,v 1.54 2003/09/12 18:10:36 stpohle Exp $
game.c - procedures for the game. */
#include <string.h>
@ -103,7 +103,7 @@ game_draw_info ()
font_drawbold ((gfx.res.x - strlen ("HURRY HURRY")*font[1].size.x)/2, 32, "HURRY HURRY", 1, 2);
font_setcolor (255,128, 128,1);
font_draw ((gfx.res.x - strlen ("HURRY HURRY")*font[1].size.x)/2, 32, "HURRY HURRY", 1);
}
}
}
if (chat.visible == 0 && GT_MP_PTP)
@ -287,6 +287,8 @@ game_start ()
menu_displaytext ("Loading..", "Please Wait", 32, 128, 32);
bman.players_nr_s = 0;
for (p = 0; p < MAX_PLAYERS; p++) {
if (PS_IS_used (bman.players[p].state)) {
bman.players_nr_s++;

@ -520,7 +520,7 @@ gamesrv_sendmode (int maxplayer, int curplayers)
char host[LEN_SERVERNAME];
char port[LEN_PORT];
d_printf ("** Notify GameMaster Server\n");
d_printf ("** Notify GameMaster Server %d/%d\n", curplayers, maxplayer);
sprintf (data, "AV%s\n", VERSION);
sprintf (data, "%sP%d,%d\n", data, curplayers, maxplayer);

@ -1,4 +1,4 @@
/* $Id: network.c,v 1.41 2003/08/27 21:14:50 stpohle Exp $ */
/* $Id: network.c,v 1.42 2003/09/12 18:10:36 stpohle Exp $ */
/*
network routines.
*/
@ -485,7 +485,7 @@ net_transmit_gamedata ()
}
else if (y < map.size.y && y != bman.players[bman.p_nr].net.net_status
&& y >= 0 && timestamp - downtimestamp > DOWNLOAD_TIMEOUT) {
/* we have got no field data */
/* getdata timed out - we have got no field data */
y--;
}
else if (y == map.size.y - 1 && bman.players[bman.p_nr].net.net_status == y) {
@ -712,7 +712,6 @@ net_send_servermode ()
if (GT_MP_PTPM && bman.notifygamemaster) /* send notification the the gamemaster */
gamesrv_sendmode (bman.maxplayer, bman.players_nr_s);
};

Loading…
Cancel
Save