fixed networking

This commit is contained in:
2025-07-20 14:07:26 +03:00
parent 69d149515a
commit 7082f28fb1
3 changed files with 11 additions and 3 deletions

View File

@@ -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)
{