1
0

Renamed hook HOOK_ENTITY_CHANGE_WORLD

This commit is contained in:
Lukas Pioch
2015-05-21 12:27:54 +02:00
parent eaedd5f19d
commit bc838e5bd2
9 changed files with 20 additions and 19 deletions

View File

@@ -525,14 +525,14 @@ bool cPluginManager::CallHookEntityTeleport(cEntity & a_Entity, const Vector3d &
bool cPluginManager::CallHookEntityChangeWorld(cEntity & a_Entity, cWorld & a_World)
bool cPluginManager::CallHookEntityChangingWorld(cEntity & a_Entity, cWorld & a_World)
{
FIND_HOOK(HOOK_ENTITY_CHANGE_WORLD);
FIND_HOOK(HOOK_ENTITY_CHANGING_WORLD);
VERIFY_HOOK;
for (PluginList::iterator itr = Plugins->second.begin(); itr != Plugins->second.end(); ++itr)
{
if ((*itr)->OnEntityChangeWorld(a_Entity, a_World))
if ((*itr)->OnEntityChangingWorld(a_Entity, a_World))
{
return true;
}