fixed windows builds 2
This commit is contained in:
@@ -94,9 +94,10 @@ void IEngine::Init()
|
||||
#endif
|
||||
|
||||
#ifdef STEAM_ENABLED
|
||||
if (!SteamAPI_Init())
|
||||
SteamErrMsg err;
|
||||
if (SteamAPI_InitEx(&err) != k_ESteamAPIInitResult_OK)
|
||||
{
|
||||
Plat_FatalErrorFunc("Failed to init Steam\n");
|
||||
Plat_FatalErrorFunc("Failed to init Steam: %s\n", err);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -128,10 +129,12 @@ void IEngine::Init()
|
||||
// execute default config
|
||||
Console()->AddCommand("exec default.cfg;");
|
||||
Console()->Execute();
|
||||
|
||||
MainMenu()->Init();
|
||||
|
||||
IConsoleUI::Init();
|
||||
if (INetworking::IsClient())
|
||||
{
|
||||
MainMenu()->Init();
|
||||
IConsoleUI::Init();
|
||||
}
|
||||
|
||||
|
||||
};
|
||||
@@ -141,7 +144,8 @@ void IEngine::Init()
|
||||
void IEngine::Frame(float fDelta)
|
||||
{
|
||||
IServer::Think(fDelta);
|
||||
if (!ICommandLine::CheckParam("-dedicated"))
|
||||
|
||||
if (INetworking::IsClient())
|
||||
{
|
||||
MainMenu()->Frame();
|
||||
IFGUI::Frame();
|
||||
@@ -154,7 +158,8 @@ void IEngine::Frame(float fDelta)
|
||||
//-----------------------------------------------------------------------------
|
||||
void IEngine::Shutdown()
|
||||
{
|
||||
MainMenu()->Deinit();
|
||||
if (INetworking::IsClient())
|
||||
MainMenu()->Deinit();
|
||||
INetworking::Deinit();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user