Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9947 for code/trunk/src


Ignore:
Timestamp:
Jan 3, 2014, 3:03:42 PM (10 years ago)
Author:
landauf
Message:

bugfix: explosion-sound was always positioned at world-coordinates (0,0,0). now it is positioned where the pawn died

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/worldentities/pawns/Pawn.cc

    r9946 r9947  
    329329        if (this->getGametype() && this->getGametype()->allowPawnDeath(this, this->lastHitOriginator_))
    330330        {
    331             explosionSound_->play();
    332331            // Set bAlive_ to false and wait for PawnManager to do the destruction
    333332            this->bAlive_ = false;
     
    385384        // chunk->setVelocity(this->getVelocity());
    386385
     386        this->explosionSound_->setPosition(this->getPosition());
     387        this->explosionSound_->play();
    387388    }
    388389    void Pawn::deatheffect()
Note: See TracChangeset for help on using the changeset viewer.