diff options
author | megamage <none@none> | 2009-05-01 11:26:19 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-05-01 11:26:19 -0500 |
commit | 182a04f5ea650ebacf98df3015fdedd4008eb6cb (patch) | |
tree | c5e5374beefd83e358b15f6160bc9f5b11e0f296 /src/game/Object.cpp | |
parent | a098dc72fcb86880955a1e5ba775c5aaefe78e1e (diff) |
*Do not update object visibility immediately when object is added to map.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Object.cpp')
-rw-r--r-- | src/game/Object.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/Object.cpp b/src/game/Object.cpp index eb7ce37734d..af024de0896 100644 --- a/src/game/Object.cpp +++ b/src/game/Object.cpp @@ -1649,6 +1649,8 @@ TempSummon *Map::SummonCreature(uint32 entry, float x, float y, float z, float a Add((Creature*)summon); summon->InitSummon(duration); + ObjectAccessor::UpdateObjectVisibility(summon); + return summon; } @@ -1706,6 +1708,8 @@ Vehicle* WorldObject::SummonVehicle(uint32 entry, float x, float y, float z, flo map->Add((Creature*)v); + ObjectAccessor::UpdateObjectVisibility(v); + return v; } @@ -1810,6 +1814,8 @@ Pet* Player::SummonPet(uint32 entry, float x, float y, float z, float ang, PetTy if(duration > 0) pet->SetDuration(duration); + ObjectAccessor::UpdateObjectVisibility(pet); + return pet; } |