mirror of https://github.com/FWGS/hlsdk-xash3d
Fix unresolved symbols.
This commit is contained in:
parent
19f6ce9097
commit
188bd98569
|
@ -127,11 +127,12 @@ int GetEntityAPI2( DLL_FUNCTIONS *pFunctionTable, int *interfaceVersion )
|
|||
return TRUE;
|
||||
}
|
||||
|
||||
int Server_GetPhysicsInterface( int version, server_physics_api_t *api, physics_interface_t *interface )
|
||||
/*int Server_GetPhysicsInterface( int version, server_physics_api_t *api, physics_interface_t *interface )
|
||||
{
|
||||
g_fIsXash3D = true;
|
||||
return FALSE; // do not tell engine to init physics interface, as we're not using it
|
||||
}
|
||||
*/
|
||||
#if !XASH_WIN32
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -283,7 +283,7 @@ void CGateOfBabylonBolt::BoltTouch( CBaseEntity *pOther )
|
|||
pev->nextthink = gpGlobals->time + 10.0;
|
||||
|
||||
// g-cont. Setup movewith feature
|
||||
if( gPhysicsInterfaceInitialized )
|
||||
if( g_fIsXash3D )
|
||||
{
|
||||
pev->movetype = MOVETYPE_COMPOUND; // set movewith type
|
||||
pev->aiment = ENT( pOther->pev ); // set parent
|
||||
|
|
|
@ -2842,7 +2842,6 @@ bool GGM_TouchCommand( CBasePlayer *pPlayer, const char *pcmd )
|
|||
return true;
|
||||
}
|
||||
|
||||
extern float g_flWeaponCheat;
|
||||
|
||||
void DumpProps(); // prop.cpp
|
||||
|
||||
|
@ -2874,8 +2873,7 @@ bool GGM_ClientCommand( CBasePlayer *pPlayer, const char *pCmd )
|
|||
return true;
|
||||
else if( FStrEq(pCmd, "dumpprops") )
|
||||
{
|
||||
if ( g_flWeaponCheat != 0.0 )
|
||||
DumpProps();
|
||||
DumpProps();
|
||||
return true;
|
||||
}
|
||||
else if( FStrEq(pCmd, "reg") )
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
#include "physint.h"
|
||||
|
||||
// Must be provided by user of this code
|
||||
extern BOOL gPhysicsInterfaceInitialized;
|
||||
extern server_physics_api_t g_physfuncs;
|
||||
|
||||
// The actual physic callbacks
|
||||
|
|
|
@ -863,8 +863,6 @@ static physics_interface_t gPhysicsInterface =
|
|||
EngineSetFeatures
|
||||
};
|
||||
|
||||
BOOL gPhysicsInterfaceInitialized = FALSE;
|
||||
|
||||
int Server_GetPhysicsInterface( int iVersion, server_physics_api_t *pfuncsFromEngine, physics_interface_t *pFunctionTable )
|
||||
{
|
||||
if( !pFunctionTable || !pfuncsFromEngine || iVersion != SV_PHYSICS_INTERFACE_VERSION )
|
||||
|
@ -878,7 +876,7 @@ int Server_GetPhysicsInterface( int iVersion, server_physics_api_t *pfuncsFromEn
|
|||
// fill engine callbacks
|
||||
memcpy( pFunctionTable, &gPhysicsInterface, sizeof(physics_interface_t) );
|
||||
|
||||
gPhysicsInterfaceInitialized = TRUE;
|
||||
g_fIsXash3D = true;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue