Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 13, 2011, 11:43:20 PM (13 years ago)
Author:
dafrick
Message:

Fixing small bug in MultiTrigger.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/tutoriallevel/src/modules/objects/triggers/MultiTrigger.cc

    r7601 r7829  
    198198                        if(bActive ^ this->isActive(state->originator))
    199199                        {
    200 
    201200                            bool bFire = true;
    202201
     
    205204                            {
    206205                                // If the MultiTrigger has not exceeded its remaining activations.
    207                                 if(this->remainingActivations_ > 0)
     206                                if(this->hasRemainingActivations())
    208207                                {
    209208                                    this->active_.insert(state->originator);
     
    218217                            {
    219218                                // If the MultiTrigger doesn't stay active or hasn't' exceeded its remaining activations.
    220                                 if(!this->getStayActive() || this->remainingActivations_ > 0)
     219                                if(!this->getStayActive() || this->hasRemainingActivations())
    221220                                    this->active_.erase(state->originator);
    222221                                else
Note: See TracChangeset for help on using the changeset viewer.