|
|
|
@ -14,7 +14,6 @@ extern int debug_lastping;
|
|
|
|
|
static short int pkg_lastid; /* the packet id, this will only counted
|
|
|
|
|
up nothing more.. if we are at 0x10000
|
|
|
|
|
we will start at 0 */
|
|
|
|
|
static signed char debug_lastpkgtyp = -1;
|
|
|
|
|
|
|
|
|
|
struct _resend_cache resend_cache;
|
|
|
|
|
struct _inpkg_index inpkg_index[PKG_IN_INDEX_NUM];
|
|
|
|
@ -293,6 +292,9 @@ send_servermode (_net_addr * addr, int pl_nr)
|
|
|
|
|
s_mod.h.len = sizeof (struct pkg_servermode);
|
|
|
|
|
s_mod.h.flags = PKGF_ackreq;
|
|
|
|
|
s_mod.type = bman.gametype;
|
|
|
|
|
if (bman.state == GS_quit) /* do not send GS_quit */
|
|
|
|
|
s_mod.state = GS_startup;
|
|
|
|
|
else
|
|
|
|
|
s_mod.state = bman.state;
|
|
|
|
|
s_mod.multitype = bman.multitype;
|
|
|
|
|
s_mod.players = bman.players_nr_s;
|
|
|
|
@ -1085,11 +1087,6 @@ do_pkg (struct pkg *packet, _net_addr * addr)
|
|
|
|
|
if (GT_MP_PTPM)
|
|
|
|
|
fwd_pkg (packet, addr);
|
|
|
|
|
|
|
|
|
|
if (debug_lastpkgtyp != packet->h.typ && debug) {
|
|
|
|
|
debug_lastpkgtyp = packet->h.typ;
|
|
|
|
|
printf ("NEW PKGTYP (%d)\n", debug_lastpkgtyp);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
switch (packet->h.typ) {
|
|
|
|
|
case (PKG_error):
|
|
|
|
|
if (do_error ((struct pkg_error *) packet, addr) < 0)
|
|
|
|
|