Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 30, 2006, 9:39:58 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: small fixes (cleanup)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/space_ships/helicopter.cc

    r6805 r6871  
    213213}
    214214
    215 void  Helicopter::attachCamera()
    216 {
     215void Helicopter::enter()
     216{
     217  dynamic_cast<Element2D*>(this->getWeaponManager()->getFixedTarget())->setVisibility( true);
    217218  State::getCamera()->setParentSoft(this->getWeaponManager()->getFixedTarget());
    218219  State::getCameraTarget()->setParentSoft(this->getWeaponManager()->getFixedTarget());
    219 
    220 }
    221 
    222 
    223 void Helicopter::enter()
    224 {
    225   dynamic_cast<Element2D*>(this->getWeaponManager()->getFixedTarget())->setVisibility( true);
    226   this->attachCamera();
    227 
    228 
    229220}
    230221
Note: See TracChangeset for help on using the changeset viewer.