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

[svn] Add Unit::GetObjectInWorld? function to get object by guid without providing reference.
Small change in SummonGameObject?.
Fix a bug that player can not click summoned najentus spine (must let target summon gameobject).

Original author: megamage
Date: 2008-10-18 19:59:34-05:00

Files:
1 modified

Legend:

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

    r56 r58  
    14531453        return NULL; 
    14541454    go->SetRespawnTime(respawnTime); 
    1455     go->SetSpawnedByDefault(false); // do not save respawn time 
    1456     go->SetOwnerGUID(GetGUID()); 
     1455    if(GetTypeId()==TYPEID_PLAYER || GetTypeId()==TYPEID_UNIT) //not sure how to handle this 
     1456        ((Unit*)this)->AddGameObject(go); 
     1457    else 
     1458        go->SetSpawnedByDefault(false); 
    14571459    map->Add(go); 
    14581460