Changeset 6316 for code/branches/presentation2/src/orxonox/controllers
- Timestamp:
- Dec 10, 2009, 9:48:53 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/orxonox/controllers/NewHumanController.cc
r6312 r6316 269 269 void NewHumanController::doFire(unsigned int firemode) 270 270 { 271 if ( !this->controllableEntity_ ) 272 return; 271 273 //if (HumanController::localController_s && HumanController::localController_s->controllableEntity_) { 272 274 … … 476 478 void NewHumanController::changedControllableEntity() 477 479 { 480 if( this->getControllableEntity() ) 481 CCOUT(0) << "changed controllable entity to: " << this->getControllableEntity()->getIdentifier()->getName() << endl; 482 else 483 CCOUT(0) << "changed controllable entity to: " << this->getControllableEntity() << endl; 478 484 this->controlMode_ = 0; 479 485 this->currentYaw_ = 0; 480 486 this->currentPitch_ = 0; 481 if (this->getControllableEntity() && this->getControllableEntity()->getIdentifier()->getName() == "SpaceShip")487 if (this->getControllableEntity() && ( this->getControllableEntity()->getIdentifier()->getName() == "SpaceShip" || this->getControllableEntity()->getIdentifier()->getName() == "Rocket" )) 482 488 { 483 489 this->showOverlays_ = true; … … 520 526 void NewHumanController::doPauseControl() { 521 527 this->controlPaused_ = true; 522 528 COUT(0) << "pause control" << endl; 523 529 this->hideOverlays(); 524 530 }
Note: See TracChangeset
for help on using the changeset viewer.