From 304f59f2bb18439addc3da1471fae8d6dacbb8b2 Mon Sep 17 00:00:00 2001 From: n0n4m3 Date: Fri, 18 Dec 2009 06:54:49 +0100 Subject: [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 --- src/game/GameEventMgr.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/game/GameEventMgr.cpp') diff --git a/src/game/GameEventMgr.cpp b/src/game/GameEventMgr.cpp index 7c879d86e7f..6e66e87cbe1 100644 --- a/src/game/GameEventMgr.cpp +++ b/src/game/GameEventMgr.cpp @@ -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); } } -- cgit v1.2.3