Changeset 10751 in orxonox.OLD for branches/presentation/src/world_entities/space_ships
- Timestamp:
- Jun 20, 2007, 11:01:39 PM (17 years ago)
- 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 234 234 235 235 bForward = bBackward = bLeft = bRight = bAscend = bDescend = bRollL = bRollR = bFire = bSecFire = false; 236 caminit = true; 236 237 237 238 this->travelNode = new PNode(); … … 427 428 void SpaceShip::tick (float time) 428 429 { 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 429 438 if ( deadBox != NULL ) 430 439 { … … 569 578 if( event.type == KeyMapper::PEV_VIEW0) 570 579 { 571 State::getCamera()->setViewMode(Camera::ViewNormal); 572 State::getCameraTargetNode()->setParent(this); 573 State::getCamera()->setParent(this); 580 574 581 } 575 582 else if( event.type == KeyMapper::PEV_VIEW1) -
branches/presentation/src/world_entities/space_ships/space_ship.h
r10749 r10751 224 224 void onButtonExit(); 225 225 void showDeadScreen(); 226 bool caminit; 226 227 227 228 };
Note: See TracChangeset
for help on using the changeset viewer.