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

[svn] * Allow WorldObjects? to keep the grid active, and prevent it from being unloaded. This can be done through calling WorldObject::setActive(bool) from the scripting library. Note that entire instances are still unloaded if no player is present on that map to save resources. This behavior can be changed if the need arises.

Original author: w12x
Date: 2008-10-27 08:41:55-05:00

Files:
1 modified

Legend:

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

    r102 r120  
    4848    ///- Register the dynamicObject for guid lookup 
    4949    if(!IsInWorld()) ObjectAccessor::Instance().AddObject(this); 
    50     Object::AddToWorld(); 
     50    WorldObject::AddToWorld(); 
    5151} 
    5252 
     
    5555    ///- Remove the dynamicObject from the accessor 
    5656    if(IsInWorld()) ObjectAccessor::Instance().RemoveObject(this); 
    57     Object::RemoveFromWorld(); 
     57    WorldObject::RemoveFromWorld(); 
    5858} 
    5959