Show
Ignore:
Timestamp:
11/22/08 00:35:41 (17 years ago)
Author:
yumileroy
Message:

Delete possessed AI only on creature delete.

Original author: gvcoman
Date: 2008-11-16 14:38:02-05:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/ObjectAccessor.h

    r268 r272  
    1111 * This program is distributed in the hope that it will be useful, 
    1212 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 
    1414 * GNU General Public License for more details. 
    1515 * 
    1616 * You should have received a copy of the GNU General Public License 
    1717 * along with this program; if not, write to the Free Software 
    18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
     18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 
    1919 */ 
    2020 
     
    187187 
    188188        void Update(uint32 diff); 
    189         void UpdatePlayers(uint32 diff); 
    190189 
    191190        Corpse* GetCorpseForPlayerGUID(uint64 guid); 
     
    195194        Corpse* ConvertCorpseForPlayer(uint64 player_guid); 
    196195 
     196        bool ActiveObjectsNearGrid(uint32 x,uint32 y,uint32 m_id,uint32 i_id) const; 
     197 
    197198        static void UpdateObject(Object* obj, Player* exceptPlayer); 
    198199        static void _buildUpdateObject(Object* obj, UpdateDataMapType &); 
     
    200201        static void UpdateObjectVisibility(WorldObject* obj); 
    201202        static void UpdateVisibilityForPlayer(Player* player); 
     203 
     204        void AddActiveObject(WorldObject*); 
     205        void RemoveActiveObject(WorldObject*); 
    202206    private: 
    203207        struct WorldObjectChangeAccumulator 
     
    224228        void _update(void); 
    225229        std::set<Object *> i_objects; 
     230        std::set<WorldObject *> i_activeobjects; 
    226231        LockType i_playerGuard; 
    227232        LockType i_updateGuard;