Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

removed duplicate code. there is no need for a second constructor. if at all, use a factory method.

File:
1 edited

Legend:

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

    r9947 r9949  
    120120                this->weaponSystem_->destroy();
    121121        }
    122 
    123122    }
    124123
     
    151150        XMLPortParam ( RadarViewable, "radarname", setRadarName, getRadarName, xmlelement, mode );
    152151    }
    153 
    154152
    155153    void Pawn::registerVariables()
     
    380378        this->setDestroyWhenPlayerLeft(false);
    381379
    382         BigExplosion* chunk = new BigExplosion(this->getContext(), this->getVelocity());
     380        BigExplosion* chunk = new BigExplosion(this->getContext());
    383381        chunk->setPosition(this->getPosition());
    384         // chunk->setVelocity(this->getVelocity());
     382        chunk->setVelocity(this->getVelocity());
    385383
    386384        this->explosionSound_->setPosition(this->getPosition());
Note: See TracChangeset for help on using the changeset viewer.