Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 1, 2008, 9:03:51 PM (16 years ago)
Author:
landauf
Message:

converted tabs to spaces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/objects/quest/Quest.cc

    r2092 r2093  
    135135        }
    136136
    137         this->hints_.push_back(hint);
    138         hint->setQuest(this);
    139 
    140         COUT(3) << "QuestHint {" << hint->getId() << "} was added to Quest {" << this->getId() << "}." << std::endl;
    141         return true;
     137        this->hints_.push_back(hint);
     138        hint->setQuest(this);
     139
     140        COUT(3) << "QuestHint {" << hint->getId() << "} was added to Quest {" << this->getId() << "}." << std::endl;
     141        return true;
    142142    }
    143143
     
    195195        int i = index;
    196196        for (std::list<Quest*>::const_iterator subQuest = this->subQuests_.begin(); subQuest != this->subQuests_.end(); ++subQuest)
    197         {
    198             if(i == 0)
    199             {
    200                return *subQuest;
    201             }
    202             i--;
    203         }
     197        {
     198            if(i == 0)
     199            {
     200               return *subQuest;
     201            }
     202            i--;
     203        }
    204204        return NULL;
    205205    }
     
    213213        int i = index;
    214214        for (std::list<QuestHint*>::const_iterator hint = this->hints_.begin(); hint != this->hints_.end(); ++hint)
    215         {
    216             if(i == 0)
    217             {
    218                return *hint;
    219             }
    220             i--;
    221         }
     215        {
     216            if(i == 0)
     217            {
     218               return *hint;
     219            }
     220            i--;
     221        }
    222222        return NULL;
    223223    }
     
    231231        int i = index;
    232232        for (std::list<QuestEffect*>::const_iterator effect = this->failEffects_.begin(); effect != this->failEffects_.end(); ++effect)
    233         {
    234             if(i == 0)
    235             {
    236                return *effect;
    237             }
    238             i--;
    239         }
     233        {
     234            if(i == 0)
     235            {
     236               return *effect;
     237            }
     238            i--;
     239        }
    240240        return NULL;
    241241    }
     
    249249        int i = index;
    250250        for (std::list<QuestEffect*>::const_iterator effect = this->completeEffects_.begin(); effect != this->completeEffects_.end(); ++effect)
    251         {
    252             if(i == 0)
    253             {
    254                return *effect;
    255             }
    256             i--;
    257         }
     251        {
     252            if(i == 0)
     253            {
     254               return *effect;
     255            }
     256            i--;
     257        }
    258258        return NULL;
    259259    }
Note: See TracChangeset for help on using the changeset viewer.