fixed networking
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include "input.h"
|
||||
#include "mainmenu.h"
|
||||
#include "networking.h"
|
||||
#include "steam/steam_api_common.h"
|
||||
#include "tier0/network.h"
|
||||
#include "tier0/platform.h"
|
||||
#include "tier1/commandline.h"
|
||||
@@ -94,6 +95,11 @@ void IEngine::Init()
|
||||
#endif
|
||||
|
||||
#ifdef STEAM_ENABLED
|
||||
if(SteamAPI_RestartAppIfNecessary(480))
|
||||
{
|
||||
Plat_Exit(0);
|
||||
}
|
||||
|
||||
SteamErrMsg err;
|
||||
if (SteamAPI_InitEx(&err) != k_ESteamAPIInitResult_OK)
|
||||
{
|
||||
@@ -143,6 +149,9 @@ void IEngine::Init()
|
||||
//-----------------------------------------------------------------------------
|
||||
void IEngine::Frame(float fDelta)
|
||||
{
|
||||
#ifdef STEAM_ENABLED
|
||||
SteamAPI_RunCallbacks();
|
||||
#endif
|
||||
IServer::Think(fDelta);
|
||||
|
||||
if (INetworking::IsClient())
|
||||
|
||||
Reference in New Issue
Block a user