work on world
This commit is contained in:
@@ -3,10 +3,9 @@
|
||||
#include "baseentity.h"
|
||||
#include "enginebridge.h"
|
||||
#include "game.h"
|
||||
#include "inetworkserver.h"
|
||||
#include "netprotocol.h"
|
||||
#include "tier1/utlvector.h"
|
||||
#include "iphysics.h"
|
||||
#include "worldsystem.h"
|
||||
#ifdef STEAM
|
||||
#include "steam/isteamgameserver.h"
|
||||
#include "steam/steam_gameserver.h"
|
||||
@@ -91,9 +90,12 @@ void CFunnyGameBridge::Init()
|
||||
if (g_pEngineConstants->m_bIsSteam)
|
||||
{
|
||||
SteamErrMsg err = { 0 };
|
||||
if (SteamGameServer_InitEx(INADDR_ANY, FUNNY_SECURE_PORT, FUNNY_QUERY_PORT, eServerModeAuthentication, "0.0.0.0", &err));
|
||||
if (!SteamGameServer())
|
||||
{
|
||||
V_printf("SteamGameServer_InitEx: %s\n", err);
|
||||
if (SteamGameServer_InitEx(INADDR_ANY, FUNNY_SECURE_PORT, FUNNY_QUERY_PORT, eServerModeAuthentication, "0.0.0.0", &err))
|
||||
{
|
||||
V_printf("SteamGameServer_InitEx: %s\n", err);
|
||||
}
|
||||
}
|
||||
SteamNetworkingUtils()->InitRelayNetworkAccess();
|
||||
}
|
||||
@@ -118,6 +120,8 @@ void CFunnyGameBridge::Init()
|
||||
CreateInterfaceFn fnPhysicsFactory = Sys_GetFactory("RapierPhysics");
|
||||
g_pPhysics = (IPhysics*)fnPhysicsFactory(PHYSICS_INTERFACE_VERSION, NULL);
|
||||
g_pPhysicsWorld = g_pPhysics->CreateWorld();
|
||||
|
||||
g_pWorldSystem->LoadMap("game/core/maps/test/test.fmap");
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user