fixed networking
This commit is contained in:
@@ -75,6 +75,7 @@ void INetworking::Init()
|
||||
#ifdef STEAMNETWORKINGSOCKETS_OPENSOURCE
|
||||
GameNetworkingSockets_Init(NULL, &errMsg)
|
||||
#endif
|
||||
V_printf("Cool\n");
|
||||
if (ICommandLine::CheckParam("-steamdebug"))
|
||||
{
|
||||
SteamNetworkingUtils()->SetDebugOutputFunction(k_ESteamNetworkingSocketsDebugOutputType_Msg,
|
||||
@@ -113,7 +114,6 @@ void INetworking::Init()
|
||||
net_listenSocket = SteamGameServerNetworkingSockets()->CreateListenSocketP2P(0, 0, NULL);
|
||||
net_bIsServer = true;
|
||||
} else {
|
||||
V_printf("Cool\n");
|
||||
if (ICommandLine::ParamValue("-connect"))
|
||||
{
|
||||
Console()->AddCommand(CUtlString("connect %s;", ICommandLine::ParamValue("-connect")));
|
||||
@@ -166,7 +166,6 @@ void INetworking::Frame()
|
||||
}
|
||||
}
|
||||
} else {
|
||||
SteamNetworkingSockets()->RunCallbacks();
|
||||
SteamNetworkingMessage_t *pMessages[64];
|
||||
while (true)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user