Changeset 2071 for code/branches/objecthierarchy/src/orxonox/objects/worldentities/triggers/Trigger.cc
- Timestamp:
- Oct 31, 2008, 12:56:29 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/orxonox/objects/worldentities/triggers/Trigger.cc
r2069 r2071 58 58 this->bSwitch_ = false; 59 59 this->bStayActive_ = false; 60 this->delay_ = 0.0; 60 this->delay_ = 0.0f; 61 this->remainingTime_ = 0.0f; 62 this->timeSinceLastEvent_ = 0.0f; 61 63 this->remainingActivations_ = -1; 62 64 … … 98 100 this->fireEvent(false); 99 101 } 102 103 // Check if the object is active (this is NOT Trigger::isActive()!) 104 if (!this->BaseObject::isActive()) 105 return; 100 106 101 107 bool newTriggered = this->isTriggered() ^ this->bInvertMode_;
Note: See TracChangeset
for help on using the changeset viewer.