[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,11 +710,6 @@ 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);
}
}
@ -745,11 +740,6 @@ 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);
}
}

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11149"
#define REVISION_NR "11150"
#endif // __REVISION_NR_H__