debug messages cleaned

origin
stpohle 19 years ago
parent 81e25366cc
commit d89b280132

@ -185,12 +185,9 @@ do_joingame (struct pkg_joingame *p_jg, _net_addr * addr)
bman.players_nr_s++;
/* send to the new client the servermode and the complete playerlist */
printf ("ADDR: %p\n", addr);
if ((!p_jg->secondplayer) && !(players[j].net.flags & NETF_local2))
send_mapinfo (addr);
printf ("ADDR: %p\n", addr);
send_servermode (addr, i); // with this packet the client know it'S pl_nr
printf ("ADDR: %p\n", addr);
addr->pl_nr = i;
}
@ -839,7 +836,7 @@ do_playerdata (struct pkg_playerdata *p_dat, _net_addr * addr)
if (p_dat->p_nr < 0 || p_dat->p_nr >= MAX_PLAYERS)
return;
printf ("do_playerdata (From: %d) p_nr: %d --> state alife? %d new %d\n", addr->pl_nr, p_dat->p_nr, PS_IS_alife(players[p_dat->p_nr].state) , PS_IS_alife(p_dat->state));
d_printf ("do_playerdata (From: %d) p_nr: %d --> state alife? %d new %d\n", addr->pl_nr, p_dat->p_nr, PS_IS_alife(players[p_dat->p_nr].state) , PS_IS_alife(p_dat->state));
bman.updatestatusbar = 1; // force an update
pl = &players[p_dat->p_nr];

Loading…
Cancel
Save