Changed UnHook -> Unhook for entity output natives.
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401979
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user