Network Join Problem fixed, Playerselection Keyboard Problem with STRG/CTRL fixed

origin
stpohle 22 years ago
parent b8a015b121
commit 9429217505

@ -1,4 +1,4 @@
/* $Id: game.c,v 1.66 2003/12/28 20:11:46 stpohle Exp $ /* $Id: game.c,v 1.67 2004/01/04 01:28:34 stpohle Exp $
game.c - procedures for the game. */ game.c - procedures for the game. */
#include <string.h> #include <string.h>
@ -260,6 +260,9 @@ game_loop ()
d_gamedetail ("GAME END"); d_gamedetail ("GAME END");
d_printf ("done = %d\n", done); d_printf ("done = %d\n", done);
draw_logo ();
gfx_blitupdaterectclear ();
SDL_Flip (gfx.screen);
}; };

@ -358,6 +358,7 @@ wait_for_players ()
players[bman.p_nr].gfx_nr = -1; players[bman.p_nr].gfx_nr = -1;
net_change_playerid (bman.p_nr, 1); net_change_playerid (bman.p_nr, 1);
bman.updatestatusbar = 1; bman.updatestatusbar = 1;
keypressed = 1;
} }
if ((GT_MP_PTPM) && ready && keys[SDLK_F4] && (!keypressed)) { if ((GT_MP_PTPM) && ready && keys[SDLK_F4] && (!keypressed)) {

@ -158,13 +158,13 @@ void multiplayer_game () {
wait_for_players (); wait_for_players ();
if (bman.p_nr != -1 && (GS_WAITRUNNING || bman.state == GS_update)) { if (bman.p_nr != -1 && (GS_WAITRUNNING || bman.state == GS_update)) {
bman.state = GS_update;
net_new_game (); net_new_game ();
game_start (); game_start ();
if (GT_MP_PTPM) { if (GT_MP_PTPM) {
net_send_mapinfo (); // maybe we have to make a break net_send_mapinfo (); // maybe we have to make a break
net_send_servermode (); // between mapinfo and servermode net_send_servermode (); // between mapinfo and servermode
} }
bman.state = GS_update;
net_transmit_gamedata (); net_transmit_gamedata ();
if (bman.state == GS_ready || bman.state == GS_running) { if (bman.state == GS_ready || bman.state == GS_running) {

@ -1,4 +1,4 @@
/* $Id: network.c,v 1.50 2004/01/03 02:12:34 stpohle Exp $ */ /* $Id: network.c,v 1.51 2004/01/04 01:28:34 stpohle Exp $ */
/* /*
network routines. network routines.
*/ */
@ -363,7 +363,7 @@ net_transmit_gamedata ()
int done = 0, int done = 0,
keypressed = 0, keypressed = 0,
x, x,
y, y, // network upload status for one step
p, p,
i, i,
net_istep; // network init step net_istep; // network init step
@ -397,7 +397,7 @@ net_transmit_gamedata ()
net_istep = 0; net_istep = 0;
else else
net_istep = 3; net_istep = 3;
while (!done && bman.state == GS_update) { while (!done && bman.state == GS_update) {
/* the network thing */ /* the network thing */
@ -648,6 +648,8 @@ net_delplayer (int pl_nr)
if (GT_MP_PTPM && bman.notifygamemaster) if (GT_MP_PTPM && bman.notifygamemaster)
send_ogc_update (); send_ogc_update ();
d_playerdetail (" Player Left ... Playerlist\n");
}; };

Loading…
Cancel
Save