From 05534bbee1b9c920c3181da6ba45e4a6212cf229 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Mon, 28 Jan 2013 16:17:26 +0000 Subject: Renamed HOOK_COLLECT_PICKUP to HOOK_COLLECTING_PICKUP to match other hooks' naming. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1180 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/PluginManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/PluginManager.cpp') diff --git a/source/PluginManager.cpp b/source/PluginManager.cpp index 2fada4714..e7a4329ca 100644 --- a/source/PluginManager.cpp +++ b/source/PluginManager.cpp @@ -323,16 +323,16 @@ bool cPluginManager::CallHookChunkGenerating(cWorld * a_World, int a_ChunkX, int -bool cPluginManager::CallHookCollectPickup(cPlayer * a_Player, cPickup & a_Pickup) +bool cPluginManager::CallHookCollectingPickup(cPlayer * a_Player, cPickup & a_Pickup) { - HookMap::iterator Plugins = m_Hooks.find(HOOK_COLLECT_PICKUP); + HookMap::iterator Plugins = m_Hooks.find(HOOK_COLLECTING_PICKUP); if (Plugins == m_Hooks.end()) { return false; } for (PluginList::iterator itr = Plugins->second.begin(); itr != Plugins->second.end(); ++itr) { - if ((*itr)->OnCollectPickup(a_Player, &a_Pickup)) + if ((*itr)->OnCollectingPickup(a_Player, &a_Pickup)) { return true; } -- cgit v1.2.3