Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 23, 2009, 10:05:58 PM (15 years ago)
Author:
landauf
Message:

replaced tabs with spaces

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/objects/worldentities/triggers/DistanceTrigger.cc

    r3033 r3034  
    8686  {
    8787    Identifier* targetId = ClassByString(targets);
    88    
     88
    8989    //! Checks whether the target is (or is derived from) a ControllableEntity.
    9090    Identifier* controllableEntityId = Class(ControllableEntity);
     
    9393      this->setForPlayer(true);
    9494    }
    95    
     95
    9696    if (!targetId)
    9797    {
     
    131131      if (distanceVec.length() < this->distance_)
    132132      {
    133        
    134         //! If the target is a player (resp. is a, or is derived from a, ControllableEntity) the triggeringPlayer is set to the target entity.
     133
     134        // If the target is a player (resp. is a, or is derived from a, ControllableEntity) the triggeringPlayer is set to the target entity.
    135135        if(this->isForPlayer())
    136         {
     136        {
    137137          Pawn* player = dynamic_cast<Pawn*>(entity);
    138           this->setTriggeringPlayer(player);
    139         }
    140        
     138          this->setTriggeringPlayer(player);
     139        }
     140
    141141        return true;
    142142      }
Note: See TracChangeset for help on using the changeset viewer.