Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7125 in orxonox.OLD for trunk/src/world_entities/space_ships


Ignore:
Timestamp:
Feb 12, 2006, 6:06:26 PM (19 years ago)
Author:
bensch
Message:

try fix

File:
1 edited

Legend:

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

    r7105 r7125  
    226226  dynamic_cast<Element2D*>(this->getWeaponManager()->getFixedTarget())->setVisibility( true);
    227227
    228   State::getCameraNode()->setParentSoft(&this->cameraNode);
    229   State::getCameraNode()->setRelCoorSoft(-10, 0,0);
    230   State::getCameraTargetNode()->setParentSoft(&this->cameraNode);
     228  if (State::getCameraNode != NULL)
     229  {
     230    State::getCameraNode()->setParentSoft(&this->cameraNode);
     231    State::getCameraNode()->setRelCoorSoft(-10, 0,0);
     232    State::getCameraTargetNode()->setParentSoft(&this->cameraNode);
     233  }
    231234}
    232235
Note: See TracChangeset for help on using the changeset viewer.