[11150] Enable GameEvent system full features for instanceable maps.

This commit is contained in:
VladimirMangos 2011-02-12 10:34:23 +03:00
parent 4aa3361f51
commit a598fb5312
2 changed files with 3 additions and 13 deletions

View file

@ -710,12 +710,7 @@ void GameEventMgr::GameEventSpawn(int16 event_id)
sObjectMgr.AddCreatureToGrid(*itr, data);
// FIXME: gameevent system can't work correctly in instanceable maps while object sin instances use dynamic guids
// Current code prevent wrong way work until switch to use static guids for instance objects
MapEntry const* mapEntry = sMapStore.LookupEntry(data->mapid);
if (mapEntry && !mapEntry->Instanceable())
Creature::SpawnInMaps(*itr, data);
Creature::SpawnInMaps(*itr, data);
}
}
@ -745,12 +740,7 @@ void GameEventMgr::GameEventSpawn(int16 event_id)
sObjectMgr.AddGameobjectToGrid(*itr, data);
// FIXME: gameevent system can't work correctly in instanceable maps while object sin instances use dynamic guids
// Current code prevent wrong way work until switch to use static guids for instance objects
MapEntry const* mapEntry = sMapStore.LookupEntry(data->mapid);
if (mapEntry && !mapEntry->Instanceable())
GameObject::SpawnInMaps(*itr, data);
GameObject::SpawnInMaps(*itr, data);
}
}