Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 5, 2008, 5:32:54 PM (16 years ago)
Author:
scheusso
Message:

small change in synchronisable and baseobject (check when changing activity)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy/src/core/BaseObject.h

    r2114 r2144  
    7272
    7373            /** @brief Sets the state of the objects activity. @param bActive True = active */
    74             inline void setActive(bool bActive) { this->bActive_ = bActive; this->changedActivity(); }
     74            inline void setActive(bool bActive)
     75            {
     76                bool bTemp = this->bActive_;
     77                this->bActive_ = bActive;
     78                if ( bTemp != bActive )
     79                    this->changedActivity();
     80            }
    7581            /** @brief Returns the state of the objects activity. @return The state of the activity */
    7682            inline bool isActive() const { return this->bActive_; }
Note: See TracChangeset for help on using the changeset viewer.