aboutsummaryrefslogtreecommitdiff
path: root/src/game/Level2.cpp
diff options
context:
space:
mode:
authorsilver1ce <none@none>2010-02-03 16:53:40 +0200
committersilver1ce <none@none>2010-02-03 16:53:40 +0200
commita307ba784c1c658902b0d7195e1cfca038a155f5 (patch)
tree23542b941fc006fd0fe586dc223571709ec9fc69 /src/game/Level2.cpp
parent23bdbf1ad3bf50696724e3502ab1775a26f2886e (diff)
*Move object's field\visibility update functions to object from accessor
removed useless SendUpdateObjectToAllExcept - anyway fields will be updated, there is no sense to force update them --HG-- branch : trunk
Diffstat (limited to 'src/game/Level2.cpp')
-rw-r--r--src/game/Level2.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/Level2.cpp b/src/game/Level2.cpp
index 16fe0f48fd5..530a243794d 100644
--- a/src/game/Level2.cpp
+++ b/src/game/Level2.cpp
@@ -634,7 +634,7 @@ bool ChatHandler::HandleGameObjectTurnCommand(const char* args)
obj->Relocate(obj->GetPositionX(), obj->GetPositionY(), obj->GetPositionZ(), o);
obj->UpdateRotationFields();
obj->DestroyForNearbyPlayers();
- ObjectAccessor::UpdateObjectVisibility(obj);
+ obj->UpdateObjectVisibility();
obj->SaveToDB();
obj->Refresh();
@@ -678,7 +678,7 @@ bool ChatHandler::HandleGameObjectMoveCommand(const char* args)
Player *chr = m_session->GetPlayer();
obj->Relocate(chr->GetPositionX(), chr->GetPositionY(), chr->GetPositionZ(), obj->GetOrientation());
obj->DestroyForNearbyPlayers();
- ObjectAccessor::UpdateObjectVisibility(obj);
+ obj->UpdateObjectVisibility();
}
else
{
@@ -698,7 +698,7 @@ bool ChatHandler::HandleGameObjectMoveCommand(const char* args)
obj->Relocate(x, y, z, obj->GetOrientation());
obj->DestroyForNearbyPlayers();
- ObjectAccessor::UpdateObjectVisibility(obj);
+ obj->UpdateObjectVisibility();
}
obj->SaveToDB();