Changeset 8741 for code/branches/ai2/src/orxonox/worldentities
- Timestamp:
- Jul 10, 2011, 9:53:17 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ai2/src/orxonox/worldentities/pawns/SpaceShip.cc
r8706 r8741 326 326 void SpaceShip::resetCamera() 327 327 { 328 Camera *camera = this->getCamera(); 329 330 if (camera == 0) 331 { 332 COUT(2) << "Failed to reset camera!"; 333 return; 334 } 335 336 this->shakeDt_ = 0; 337 camera->setPosition(this->cameraOriginalPosition_); 338 camera->setOrientation(this->cameraOriginalOrientation_); 328 if(this->hasLocalController() && this->hasHumanController()) 329 { 330 Camera *camera = this->getCamera(); 331 332 if (camera == 0) 333 { 334 COUT(2) << "Failed to reset camera!"; 335 return; 336 } 337 338 this->shakeDt_ = 0; 339 camera->setPosition(this->cameraOriginalPosition_); 340 camera->setOrientation(this->cameraOriginalOrientation_); 341 } 339 342 } 340 343
Note: See TracChangeset
for help on using the changeset viewer.