aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/Map.cpp3
-rw-r--r--src/game/Object.cpp6
2 files changed, 5 insertions, 4 deletions
diff --git a/src/game/Map.cpp b/src/game/Map.cpp
index b6aae4131d5..7f9a24bc484 100644
--- a/src/game/Map.cpp
+++ b/src/game/Map.cpp
@@ -519,7 +519,8 @@ Map::Add(T *obj)
DEBUG_LOG("Object %u enters grid[%u,%u]", GUID_LOPART(obj->GetGUID()), cell.GridX(), cell.GridY());
//something, such as vehicle, needs to be update immediately
- if(obj->GetTypeId() != TYPEID_UNIT)
+ //also, trigger needs to cast spell, if not update, cannot see visual
+ //if(obj->GetTypeId() != TYPEID_UNIT)
UpdateObjectVisibility(obj,cell,p);
AddNotifier(obj);
diff --git a/src/game/Object.cpp b/src/game/Object.cpp
index cec9c50b71e..a0e9ab4a98a 100644
--- a/src/game/Object.cpp
+++ b/src/game/Object.cpp
@@ -1652,7 +1652,7 @@ TempSummon *Map::SummonCreature(uint32 entry, float x, float y, float z, float a
Add((Creature*)summon);
summon->InitSummon(duration);
- ObjectAccessor::UpdateObjectVisibility(summon);
+ //ObjectAccessor::UpdateObjectVisibility(summon);
return summon;
}
@@ -1711,7 +1711,7 @@ Vehicle* WorldObject::SummonVehicle(uint32 entry, float x, float y, float z, flo
map->Add((Creature*)v);
- ObjectAccessor::UpdateObjectVisibility(v);
+ //ObjectAccessor::UpdateObjectVisibility(v);
return v;
}
@@ -1817,7 +1817,7 @@ Pet* Player::SummonPet(uint32 entry, float x, float y, float z, float ang, PetTy
if(duration > 0)
pet->SetDuration(duration);
- ObjectAccessor::UpdateObjectVisibility(pet);
+ //ObjectAccessor::UpdateObjectVisibility(pet);
return pet;
}