mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19:37:03 +00:00
[8701] Fixes and inprovements in pool system.
* Fixed object is removed from guid->object map but still spawned in world under some conditions * Fixed possibility to spawn already spawned object * Fixed objects despawning (missing part for explicitly chanced objects added) Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
parent
f59f7d2a2e
commit
b4ea5a6d19
5 changed files with 123 additions and 113 deletions
|
|
@ -580,7 +580,9 @@ void GameEventMgr::GameEventSpawn(int16 event_id)
|
|||
|
||||
for (IdList::iterator itr = mGameEventPoolIds[internal_event_id].begin();itr != mGameEventPoolIds[internal_event_id].end();++itr)
|
||||
{
|
||||
poolhandler.SpawnPool(*itr);
|
||||
poolhandler.SpawnPool(*itr, 0, 0);
|
||||
poolhandler.SpawnPool(*itr, 0, TYPEID_GAMEOBJECT);
|
||||
poolhandler.SpawnPool(*itr, 0, TYPEID_UNIT);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue