*Update active object code. By VladimirMangos.

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-02-25 20:52:20 -06:00
1 parent ccde296fd3
commit bf66375bc7
14 files changed
+279 -123

No files matched your search

+6
View File
@@ -127,6 +127,9 @@ void LoadHelper(CellGuidSet const& guid_set, CellPair &cell, GridRefManager<T> &
addUnitState(obj,cell);
obj->AddToWorld();
if(obj->isActiveObject())
map->AddToActive(obj);
++count;
}
@@ -152,6 +155,9 @@ void LoadHelper(CellCorpseSet const& cell_corpses, CellPair &cell, CorpseMapType
addUnitState(obj,cell);
obj->AddToWorld();
if(obj->isActiveObject())
map->AddToActive(obj);
++count;
}
}