Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 3, 2014, 1:50:22 PM (11 years ago)
Author:
landauf
Message:

replaced tabs with spaces. no changes in code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/pong/PongBall.cc

    r9939 r9945  
    147147        {
    148148            defBoundarySound_->play(); //play boundary sound
    149                 // Its velocity in z-direction is inverted (i.e. it bounces off).
     149            // Its velocity in z-direction is inverted (i.e. it bounces off).
    150150            velocity.z = -velocity.z;
    151151            // And its position is set as to not overstep the boundary it has just crossed.
     
    173173                    {
    174174                        defBatSound_->play(); //play bat sound
    175                         // Set the ball to be exactly at the boundary.
     175                        // Set the ball to be exactly at the boundary.
    176176                        position.x = this->fieldWidth_ / 2;
    177177                        // Invert its velocity in x-direction (i.e. it bounces off).
     
    186186                    else if (GameMode::isMaster() && position.x > this->fieldWidth_ / 2 * (1 + this->relMercyOffset_))
    187187                    {
    188                         defScoreSound_->play();//play score sound
     188                        defScoreSound_->play();//play score sound
    189189                        if (this->getGametype() && this->bat_[0])
    190190                        {
     
    202202                    {
    203203                        defBatSound_->play(); //play bat sound
    204                         // Set the ball to be exactly at the boundary.
     204                        // Set the ball to be exactly at the boundary.
    205205                        position.x = -this->fieldWidth_ / 2;
    206206                        // Invert its velocity in x-direction (i.e. it bounces off).
     
    215215                    else if (GameMode::isMaster() && position.x < -this->fieldWidth_ / 2 * (1 + this->relMercyOffset_))
    216216                    {
    217                         defScoreSound_->play();//play score sound
     217                        defScoreSound_->play();//play score sound
    218218                        if (this->getGametype() && this->bat_[1])
    219219                        {
Note: See TracChangeset for help on using the changeset viewer.