mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-23 13:46:24 +00:00
Revert Visibility Notifier changes (#17682)
* Revert "fix(Core/Grid): Implement missing GridUnload setting (#17569)" This reverts commit79b39f9655. * Revert "fix(Core/Grid): Address bugs and performance issues introduced by visibility notifier implementation (#17480)" This reverts commit60e27511c5. * Revert "fix(Core): GridCleanUpDelay Log (#17436)" This reverts commit90b16ca065. * Revert "feat(Core/Grids): Implement visibility notifier (#15919)" This reverts commit2779833768.
This commit is contained in:
@@ -815,7 +815,7 @@ Creature* Battlefield::SpawnCreature(uint32 entry, float x, float y, float z, fl
|
||||
|
||||
// Set creature in world
|
||||
map->AddToMap(creature);
|
||||
creature->SetFarVisible(true);
|
||||
creature->setActive(true);
|
||||
|
||||
return creature;
|
||||
}
|
||||
@@ -840,7 +840,7 @@ GameObject* Battlefield::SpawnGameObject(uint32 entry, float x, float y, float z
|
||||
|
||||
// Add to world
|
||||
map->AddToMap(go);
|
||||
go->SetFarVisible(true);
|
||||
go->setActive(true);
|
||||
|
||||
return go;
|
||||
}
|
||||
|
||||
@@ -1159,7 +1159,6 @@ struct BfWGGameObjectBuilding
|
||||
// Rebuild gameobject
|
||||
go->SetDestructibleState(GO_DESTRUCTIBLE_REBUILDING, nullptr, true);
|
||||
go->SetUInt32Value(GAMEOBJECT_FACTION, WintergraspFaction[m_Team]);
|
||||
go->setActive(false); // Everything is reset, no need keep active at this point.
|
||||
}
|
||||
|
||||
// Update worldstate
|
||||
@@ -1171,10 +1170,6 @@ struct BfWGGameObjectBuilding
|
||||
// Called when associated gameobject is damaged
|
||||
void Damaged()
|
||||
{
|
||||
GameObject* go = m_WG->GetGameObject(m_Build);
|
||||
if (go)
|
||||
go->setActive(true);
|
||||
|
||||
// Update worldstate
|
||||
m_State = BATTLEFIELD_WG_OBJECTSTATE_ALLIANCE_DAMAGE - (m_Team * 3);
|
||||
m_WG->SendUpdateWorldState(m_WorldState, m_State);
|
||||
@@ -1198,10 +1193,6 @@ struct BfWGGameObjectBuilding
|
||||
// Called when associated gameobject is destroyed
|
||||
void Destroyed()
|
||||
{
|
||||
GameObject* go = m_WG->GetGameObject(m_Build);
|
||||
if (go)
|
||||
go->setActive(true);
|
||||
|
||||
// Update worldstate
|
||||
m_State = BATTLEFIELD_WG_OBJECTSTATE_ALLIANCE_DESTROY - (m_Team * 3);
|
||||
m_WG->SendUpdateWorldState(m_WorldState, m_State);
|
||||
|
||||
Reference in New Issue
Block a user