Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 31, 2015, 5:31:23 PM (9 years ago)
Author:
landauf
Message:

replaced tabs with spaces. no changes in code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentationFS14/src/modules/jump/JumpPropeller.cc

    r10078 r10215  
    8383            if(figurePosition.x > PropellerPosition.x-width_ && figurePosition.x < PropellerPosition.x+width_ && figurePosition.z > PropellerPosition.z-height_ && figurePosition.z < PropellerPosition.z+height_)
    8484            {
    85                 touchFigure();
     85                touchFigure();
    8686            }
    8787        }
    8888        else if (attachedToFigure_ == true)
    8989        {
    90                 fuel_ -= dt;
    91                 if (fuel_ < 0.0)
    92                 {
    93                         figure_->StopPropeller(this);
    94                 }
     90            fuel_ -= dt;
     91            if (fuel_ < 0.0)
     92            {
     93                figure_->StopPropeller(this);
     94            }
    9595        }
    9696    }
     
    9898    void JumpPropeller::touchFigure()
    9999    {
    100         JumpItem::touchFigure();
     100        JumpItem::touchFigure();
    101101
    102         attachedToFigure_ = figure_->StartPropeller(this);
    103         if (attachedToFigure_)
    104         {
    105                 setAngularVelocity(Vector3(0,0,10.0));
    106         }
     102        attachedToFigure_ = figure_->StartPropeller(this);
     103        if (attachedToFigure_)
     104        {
     105            setAngularVelocity(Vector3(0,0,10.0));
     106        }
    107107    }
    108108}
Note: See TracChangeset for help on using the changeset viewer.