Changed UnHook -> Unhook for entity output natives.
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401979
This commit is contained in:
parent
9b4bdd05b5
commit
51d5f79f1e
@ -500,9 +500,9 @@ static cell_t GetVariantString(IPluginContext *pContext, const cell_t *params)
|
||||
sp_nativeinfo_t g_EntOutputNatives[] =
|
||||
{
|
||||
{"HookEntityOutput", HookEntityOutput},
|
||||
{"UnHookEntityOutput", UnHookEntityOutput},
|
||||
{"UnhookEntityOutput", UnHookEntityOutput},
|
||||
{"HookSingleEntityOutput", HookSingleEntityOutput},
|
||||
{"UnHookSingleEntityOutput", UnHookSingleEntityOutput},
|
||||
{"UnhookSingleEntityOutput", UnHookSingleEntityOutput},
|
||||
#if 0 //Removed because we don't need them
|
||||
{"GetVariantType", GetVariantType},
|
||||
{"GetVariantInt", GetVariantInt},
|
||||
|
@ -64,7 +64,7 @@ native HookEntityOutput(const String:classname[], const String:output[], EntityO
|
||||
* @return True on success, false if no valid hook was found.
|
||||
* @error Entity Outputs disabled.
|
||||
*/
|
||||
native bool:UnHookEntityOutput(const String:classname[], const String:output[], EntityOutput:callback);
|
||||
native bool:UnhookEntityOutput(const String:classname[], const String:output[], EntityOutput:callback);
|
||||
|
||||
/**
|
||||
* Add an entity output hook on a single entity instance
|
||||
@ -87,5 +87,5 @@ native HookSingleEntityOutput(entity, const String:output[], EntityOutput:callba
|
||||
* @return True on success, false if no valid hook was found.
|
||||
* @error Entity Outputs disabled or Invalid Entity index.
|
||||
*/
|
||||
native bool:UnHookSingleEntityOutput(entity, const String:output[], EntityOutput:callback);
|
||||
native bool:UnhookSingleEntityOutput(entity, const String:output[], EntityOutput:callback);
|
||||
|
||||
|
@ -54,6 +54,6 @@ public OnMapStart()
|
||||
AcceptEntityInput(ent, "LightOn", ent, ent);
|
||||
|
||||
//Comment these out (and reload the plugin heaps) to test for leaks on plugin unload
|
||||
UnHookSingleEntityOutput(ent, "OnLightOn", OutputHook);
|
||||
UnHookSingleEntityOutput(ent, "OnLightOff", OutputHook);
|
||||
UnhookSingleEntityOutput(ent, "OnLightOn", OutputHook);
|
||||
UnhookSingleEntityOutput(ent, "OnLightOff", OutputHook);
|
||||
}
|
Loading…
Reference in New Issue
Block a user