Changed UnHook -> Unhook for entity output natives.

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401979
This commit is contained in:
Matt Woodrow 2008-04-02 01:58:45 +00:00
parent 9b4bdd05b5
commit 51d5f79f1e
3 changed files with 6 additions and 6 deletions

View File

@ -500,9 +500,9 @@ static cell_t GetVariantString(IPluginContext *pContext, const cell_t *params)
sp_nativeinfo_t g_EntOutputNatives[] = sp_nativeinfo_t g_EntOutputNatives[] =
{ {
{"HookEntityOutput", HookEntityOutput}, {"HookEntityOutput", HookEntityOutput},
{"UnHookEntityOutput", UnHookEntityOutput}, {"UnhookEntityOutput", UnHookEntityOutput},
{"HookSingleEntityOutput", HookSingleEntityOutput}, {"HookSingleEntityOutput", HookSingleEntityOutput},
{"UnHookSingleEntityOutput", UnHookSingleEntityOutput}, {"UnhookSingleEntityOutput", UnHookSingleEntityOutput},
#if 0 //Removed because we don't need them #if 0 //Removed because we don't need them
{"GetVariantType", GetVariantType}, {"GetVariantType", GetVariantType},
{"GetVariantInt", GetVariantInt}, {"GetVariantInt", GetVariantInt},

View File

@ -64,7 +64,7 @@ native HookEntityOutput(const String:classname[], const String:output[], EntityO
* @return True on success, false if no valid hook was found. * @return True on success, false if no valid hook was found.
* @error Entity Outputs disabled. * @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 * 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. * @return True on success, false if no valid hook was found.
* @error Entity Outputs disabled or Invalid Entity index. * @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);

View File

@ -54,6 +54,6 @@ public OnMapStart()
AcceptEntityInput(ent, "LightOn", ent, ent); AcceptEntityInput(ent, "LightOn", ent, ent);
//Comment these out (and reload the plugin heaps) to test for leaks on plugin unload //Comment these out (and reload the plugin heaps) to test for leaks on plugin unload
UnHookSingleEntityOutput(ent, "OnLightOn", OutputHook); UnhookSingleEntityOutput(ent, "OnLightOn", OutputHook);
UnHookSingleEntityOutput(ent, "OnLightOff", OutputHook); UnhookSingleEntityOutput(ent, "OnLightOff", OutputHook);
} }