diff options
author | silver1ce <none@none> | 2010-02-03 16:53:40 +0200 |
---|---|---|
committer | silver1ce <none@none> | 2010-02-03 16:53:40 +0200 |
commit | a307ba784c1c658902b0d7195e1cfca038a155f5 (patch) | |
tree | 23542b941fc006fd0fe586dc223571709ec9fc69 /src/game/Item.cpp | |
parent | 23bdbf1ad3bf50696724e3502ab1775a26f2886e (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/Item.cpp')
-rw-r--r-- | src/game/Item.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/game/Item.cpp b/src/game/Item.cpp index eed876082bf..61c86d389b7 100644 --- a/src/game/Item.cpp +++ b/src/game/Item.cpp @@ -1018,3 +1018,10 @@ bool ItemRequiredTarget::IsFitToRequirements( Unit* pUnitTarget ) const return false; } } + +void Item::BuildUpdate(UpdateDataMapType& data_map) +{ + if(Player *owner = GetOwner()) + BuildFieldsUpdate(owner, data_map); + ClearUpdateMask(false); +} |