aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
authorw12x <none@none>2008-10-27 08:41:55 -0500
committerw12x <none@none>2008-10-27 08:41:55 -0500
commite72a13c3dd10922a18d9ee59a7f62fbfb6b69c03 (patch)
treeddc7ef24aa60c78b749a6e7e4e8880f56c42e618 /src/game/Unit.cpp
parent0e18e4330c0ab109080d5b7f18a3f9f83412e65a (diff)
[svn] * Allow WorldObjects to keep the grid active, and prevent it from being unloaded. This can be done through calling WorldObject::setActive(bool) from the scripting library. Note that entire instances are still unloaded if no player is present on that map to save resources. This behavior can be changed if the need arises.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 786ee62dafc..d079219588b 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -9826,7 +9826,7 @@ uint32 Unit::GetCreatePowers( Powers power ) const
void Unit::AddToWorld()
{
- Object::AddToWorld();
+ WorldObject::AddToWorld();
}
void Unit::RemoveFromWorld()
@@ -9837,7 +9837,7 @@ void Unit::RemoveFromWorld()
RemoveNotOwnSingleTargetAuras();
}
- Object::RemoveFromWorld();
+ WorldObject::RemoveFromWorld();
}
void Unit::CleanupsBeforeDelete()