Fix linux build

This commit is contained in:
A1mDev 2024-02-07 18:53:46 -06:00 committed by Ryan Stecker
parent 45f25d15a5
commit b4b3671573
2 changed files with 3 additions and 3 deletions

View File

@ -76,8 +76,6 @@ DETOUR_DECL_STATIC2( PassServerEntityFilterFunc, bool, const IHandleEntity *, pT
bool CollisionHook::SDK_OnLoad( char *error, size_t maxlength, bool late )
{
sharesys->RegisterLibrary( myself, "collisionhook" );
char szConfError[ 256 ] = "";
if ( !gameconfs->LoadGameConfigFile( "collisionhook", &g_pGameConf, szConfError, sizeof( szConfError ) ) )
{
@ -98,6 +96,8 @@ bool CollisionHook::SDK_OnLoad( char *error, size_t maxlength, bool late )
g_pCollisionFwd = forwards->CreateForward( "CH_ShouldCollide", ET_Hook, 3, NULL, Param_Cell, Param_Cell, Param_CellByRef );
g_pPassFwd = forwards->CreateForward( "CH_PassFilter", ET_Hook, 3, NULL, Param_Cell, Param_Cell, Param_CellByRef );
sharesys->RegisterLibrary( myself, "collisionhook" );
return true;
}

View File

@ -38,7 +38,7 @@
*/
/* Basic information exposed publicly */
#define SMEXT_CONF_NAME "CollisionHooks"
#define SMEXT_CONF_NAME "CollisionHook"
#define SMEXT_CONF_DESCRIPTION "Hook on entity collision"
#define SMEXT_CONF_VERSION "0.2"
#define SMEXT_CONF_AUTHOR "VoiDeD"