mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-02-02 18:14:26 +00:00
Make gPhysicsInterfaceInitialized public
This commit is contained in:
parent
fa181d8332
commit
ed0449448d
@ -19,6 +19,7 @@
|
|||||||
#include "physint.h"
|
#include "physint.h"
|
||||||
|
|
||||||
// Must be provided by user of this code
|
// Must be provided by user of this code
|
||||||
|
extern BOOL gPhysicsInterfaceInitialized;
|
||||||
extern server_physics_api_t g_physfuncs;
|
extern server_physics_api_t g_physfuncs;
|
||||||
|
|
||||||
// The actual physic callbacks
|
// The actual physic callbacks
|
||||||
|
@ -822,6 +822,8 @@ static physics_interface_t gPhysicsInterface =
|
|||||||
DispatchPhysicsEntity,
|
DispatchPhysicsEntity,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
BOOL gPhysicsInterfaceInitialized = FALSE;
|
||||||
|
|
||||||
int Server_GetPhysicsInterface( int iVersion, server_physics_api_t *pfuncsFromEngine, physics_interface_t *pFunctionTable )
|
int Server_GetPhysicsInterface( int iVersion, server_physics_api_t *pfuncsFromEngine, physics_interface_t *pFunctionTable )
|
||||||
{
|
{
|
||||||
if( !pFunctionTable || !pfuncsFromEngine || iVersion != SV_PHYSICS_INTERFACE_VERSION )
|
if( !pFunctionTable || !pfuncsFromEngine || iVersion != SV_PHYSICS_INTERFACE_VERSION )
|
||||||
@ -835,5 +837,6 @@ int Server_GetPhysicsInterface( int iVersion, server_physics_api_t *pfuncsFromEn
|
|||||||
// fill engine callbacks
|
// fill engine callbacks
|
||||||
memcpy( pFunctionTable, &gPhysicsInterface, sizeof(physics_interface_t) );
|
memcpy( pFunctionTable, &gPhysicsInterface, sizeof(physics_interface_t) );
|
||||||
|
|
||||||
|
gPhysicsInterfaceInitialized = TRUE;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user