[8667] Correctly respawn pooled object in case the same object is selected for respawn

[8701] Fixes and inprovements in pool system. thx Frankir

--HG--
branch : trunk
This commit is contained in:
n0n4m3
2009-12-18 06:54:49 +01:00
parent 6da2105aa9
commit 304f59f2bb
4 changed files with 121 additions and 98 deletions

View File

@@ -1279,7 +1279,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);
}
}