From 182a04f5ea650ebacf98df3015fdedd4008eb6cb Mon Sep 17 00:00:00 2001 From: megamage Date: Fri, 1 May 2009 11:26:19 -0500 Subject: *Do not update object visibility immediately when object is added to map. --HG-- branch : trunk --- src/game/Object.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/game/Object.cpp') 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; } -- cgit v1.2.3