Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 31, 2008, 12:56:29 AM (16 years ago)
Author:
landauf
Message:
  • fixed another bug in Trigger
  • added EventTrigger which listens on "trigger" events
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy/src/orxonox/objects/worldentities/triggers/Trigger.cc

    r2069 r2071  
    5858    this->bSwitch_ = false;
    5959    this->bStayActive_ = false;
    60     this->delay_ = 0.0;
     60    this->delay_ = 0.0f;
     61    this->remainingTime_ = 0.0f;
     62    this->timeSinceLastEvent_ = 0.0f;
    6163    this->remainingActivations_ = -1;
    6264
     
    98100      this->fireEvent(false);
    99101    }
     102
     103    // Check if the object is active (this is NOT Trigger::isActive()!)
     104    if (!this->BaseObject::isActive())
     105        return;
    100106
    101107    bool newTriggered = this->isTriggered() ^ this->bInvertMode_;
Note: See TracChangeset for help on using the changeset viewer.