git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4889 fc73d0e0-1445-4013-8a0c-d673dee63da5

This commit is contained in:
Spoike 2015-06-06 08:26:40 +00:00
parent 7ff8286a66
commit 16a62f26a1

View file

@ -5594,6 +5594,12 @@ void NET_Init (void)
Cvar_Register (&net_upnpigp, "networking"); Cvar_Register (&net_upnpigp, "networking");
net_upnpigp.restriction = RESTRICT_MAX; net_upnpigp.restriction = RESTRICT_MAX;
//
// init the message buffer
//
net_message.maxsize = sizeof(net_message_buffer);
net_message.data = net_message_buffer;
#if defined(HAVE_WINSSPI) #if defined(HAVE_WINSSPI)
SSL_Init(); SSL_Init();
#endif #endif
@ -5635,12 +5641,6 @@ void NET_InitClient(qboolean loopbackonly)
FTENET_AddToCollection(cls.sockets, "CLIPX", port, NA_IPX, true); FTENET_AddToCollection(cls.sockets, "CLIPX", port, NA_IPX, true);
#endif #endif
//
// init the message buffer
//
net_message.maxsize = sizeof(net_message_buffer);
net_message.data = net_message_buffer;
// Con_TPrintf("Client port Initialized\n"); // Con_TPrintf("Client port Initialized\n");
} }
#endif #endif
@ -5797,13 +5797,6 @@ void NET_InitServer(void)
FTENET_AddToCollection(svs.sockets, "SVLoopback", STRINGIFY(PORT_QWSERVER), NA_LOOPBACK, true); FTENET_AddToCollection(svs.sockets, "SVLoopback", STRINGIFY(PORT_QWSERVER), NA_LOOPBACK, true);
#endif #endif
} }
//
// init the message buffer
//
net_message.maxsize = sizeof(net_message_buffer);
net_message.data = net_message_buffer;
} }
#endif #endif