Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 19, 2010, 11:43:25 PM (14 years ago)
Author:
rgrieder
Message:

Renamed all symbols called "check" because of macro collisions on OS X.
Inserted something like an assert in btGjkPairDetector.cpp with the hope that I don't have to modify that 'check' there.

Location:
code/branches/ois_update/src/modules/questsystem
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ois_update/src/modules/questsystem/QuestEffect.cc

    r7456 r7564  
    6868    /*static*/ bool QuestEffect::invokeEffects(PlayerInfo* player, std::list<QuestEffect*> & effects)
    6969    {
    70         bool check = true;
     70        bool temp = true;
    7171
    7272        COUT(4) << "Invoking QuestEffects on player: " << player << " ."  << std::endl;
    7373
    7474        for (std::list<QuestEffect*>::iterator effect = effects.begin(); effect != effects.end(); effect++)
    75             check = check && (*effect)->invoke(player);
     75            temp = temp && (*effect)->invoke(player);
    7676
    77         return check;
     77        return temp;
    7878    }
    7979
  • code/branches/ois_update/src/modules/questsystem/QuestEffectBeacon.cc

    r7484 r7564  
    154154        COUT(4) << "QuestEffectBeacon executed on player: " << player << " ." << std::endl;
    155155
    156         bool check = QuestEffect::invokeEffects(player, this->effects_); // Invoke the QuestEffects on the PlayerInfo.
    157         if(check)
     156        bool temp = QuestEffect::invokeEffects(player, this->effects_); // Invoke the QuestEffects on the PlayerInfo.
     157        if(temp)
    158158        {
    159159            this->decrementTimes(); // Decrement the number of times the beacon can be used.
  • code/branches/ois_update/src/modules/questsystem/effects/AddReward.cc

    r7456 r7564  
    105105        COUT(5) << "AddReward on player: " << player << " ." << std::endl;
    106106
    107         bool check = true;
     107        bool temp = true;
    108108        for ( std::list<Rewardable*>::iterator reward = this->rewards_.begin(); reward != this->rewards_.end(); ++reward )
    109             check = check && (*reward)->reward(player);
     109            temp = temp && (*reward)->reward(player);
    110110
    111111        COUT(4) << "Rewardable successfully added to player." << player << " ." << std::endl;
    112112
    113         return check;
     113        return temp;
    114114    }
    115115
Note: See TracChangeset for help on using the changeset viewer.