Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 20, 2007, 11:01:39 PM (17 years ago)
Author:
snellen
Message:

viewmode correct set in spaceship

Location:
branches/presentation/src/world_entities/space_ships
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/world_entities/space_ships/space_ship.cc

    r10750 r10751  
    234234
    235235  bForward = bBackward = bLeft = bRight = bAscend = bDescend = bRollL = bRollR = bFire = bSecFire = false;
     236  caminit = true;
    236237
    237238  this->travelNode = new PNode();
     
    427428void SpaceShip::tick (float time)
    428429{
     430  if(caminit)
     431  {
     432  State::getCamera()->setViewMode(Camera::ViewNormal);
     433  State::getCameraTargetNode()->setParent(this);
     434  State::getCamera()->setParent(this);
     435  caminit = false;
     436  }
     437 
    429438  if ( deadBox != NULL )
    430439  {
     
    569578    if( event.type == KeyMapper::PEV_VIEW0)
    570579    {
    571       State::getCamera()->setViewMode(Camera::ViewNormal);
    572       State::getCameraTargetNode()->setParent(this);
    573       State::getCamera()->setParent(this);
     580
    574581    }
    575582    else if( event.type == KeyMapper::PEV_VIEW1)
  • branches/presentation/src/world_entities/space_ships/space_ship.h

    r10749 r10751  
    224224    void onButtonExit();
    225225    void showDeadScreen();
     226    bool caminit;
    226227
    227228};
Note: See TracChangeset for help on using the changeset viewer.