aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-04-08 17:34:01 -0500
committermegamage <none@none>2009-04-08 17:34:01 -0500
commite3272f2b0a3b7ce2e215614b2f5655a677e1c99c (patch)
tree18b27b58fd34a318bdc52e362752f0013e6ab15b /src/game/Unit.cpp
parentd6be48326f11300c3e5361c4c5705b2db622b1b6 (diff)
parenta7e04a252fc04988dea2072241ad8825db747e58 (diff)
*Merge.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r--src/game/Unit.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index 0713433deb6..3cc3da5238f 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -11007,6 +11007,16 @@ uint32 Unit::GetCreatePowers( Powers power ) const
return 0;
}
+void Unit::AddToWorld()
+{
+ if(!IsInWorld())
+ {
+ m_Notified = false;
+ m_IsInNotifyList = false;
+ SetToNotify();
+ }
+}
+
void Unit::RemoveFromWorld()
{
// cleanup