Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 9, 2010, 9:32:58 PM (15 years ago)
Author:
rgrieder
Message:

Removed excess white space at the end of lines.

Location:
code/branches/presentation3/src/modules/weapons/projectiles
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation3/src/modules/weapons/projectiles/Rocket.cc

    r7018 r7127  
    167167            this->localAngularVelocity_ = 0;
    168168        }
    169        
     169
    170170        if( GameMode::isMaster() )
    171171        {
    172172            if( this->bDestroy_ )
    173173                this->destroy();
    174            
     174
    175175        }
    176176    }
  • code/branches/presentation3/src/modules/weapons/projectiles/SimpleRocket.cc

    r7025 r7127  
    7171            this->fire_ = new ParticleEmitter(this);
    7272            this->attach(this->fire_);
    73            
     73
    7474            this->fire_->setOrientation(this->getOrientation());
    7575            this->fire_->setSource("Orxonox/simplerocketfire");
     
    9090
    9191
    92    
     92
    9393    /**
    9494    * @brief updates state of rocket, disables fire if no fuel
     
    107107            this->localAngularVelocity_ = 0;
    108108
    109        
     109
    110110            if (this->fuel_)
    111111            {
    112                 if (this->destroyTimer_.getRemainingTime()<  (static_cast<float>(this->FUEL_PERCENTAGE)/100) *this->lifetime_ ) 
     112                if (this->destroyTimer_.getRemainingTime()<  (static_cast<float>(this->FUEL_PERCENTAGE)/100) *this->lifetime_ )
    113113                    this->fuel_=false;
    114114            } else
    115115                this->disableFire();
    116116
    117             if( this->bDestroy_ ) 
     117            if( this->bDestroy_ )
    118118                this->destroy();
    119119        }
    120                
     120
    121121    }
    122122
     
    127127    void SimpleRocket::disableFire()
    128128    {
    129         this->setAcceleration(0,0,0);       
     129        this->setAcceleration(0,0,0);
    130130        this->fire_->detachFromParent();
    131131    }
     
    137137    SimpleRocket::~SimpleRocket()
    138138    {
    139         if (this->isInitialized()) 
     139        if (this->isInitialized())
    140140        {
    141141            if( GameMode::isMaster() )
  • code/branches/presentation3/src/modules/weapons/projectiles/SimpleRocket.h

    r7095 r7127  
    9898            */
    9999            inline void rotatePitch(float value)
    100             {   
     100            {
    101101                this->rotatePitch(Vector2(value, 0)); }
    102102            /**
     
    105105            */
    106106            inline void rotateRoll(float value)
    107             { 
     107            {
    108108                this->rotateRoll(Vector2(value, 0)); }
    109109
     
    124124            Vector3 localAngularVelocity_;
    125125            float damage_;
    126             bool bDestroy_; 
     126            bool bDestroy_;
    127127            bool fuel_; //!< Bool is true while the rocket "has fuel"
    128128
Note: See TracChangeset for help on using the changeset viewer.