Changeset 61 for trunk/src/game/Map.cpp

Show
Ignore:
Timestamp:
11/19/08 13:30:29 (17 years ago)
Author:
yumileroy
Message:

[svn] Finally really fixed compile. Also, removed Unit::GetObjectInWorld?(), use Map::GetCreatureInMap?() and Map::GetGameObjectInMap?() instead. This is to prevent creature-creature interaction on different maps, which would make the later multithreading of maps impossible.

Original author: w12x
Date: 2008-10-19 11:07:10-05:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/Map.cpp

    r44 r61  
    15611561} 
    15621562 
     1563Creature * Map::GetCreatureInMap(uint64 guid) 
     1564{ 
     1565    Creature * obj = HashMapHolder<Creature>::Find(guid); 
     1566    if(obj && obj->GetInstanceId() != GetInstanceId()) obj = NULL; 
     1567    return obj; 
     1568} 
     1569 
     1570GameObject * Map::GetGameObjectInMap(uint64 guid) 
     1571{ 
     1572    GameObject * obj = HashMapHolder<GameObject>::Find(guid); 
     1573    if(obj && obj->GetInstanceId() != GetInstanceId()) obj = NULL; 
     1574    return obj; 
     1575} 
     1576 
    15631577void InstanceMap::CreateInstanceData(bool load) 
    15641578{