Changeset 7073 for code/branches/presentation3/src/orxonox/controllers
- Timestamp:
- Jun 2, 2010, 12:02:50 AM (14 years ago)
- Location:
- code/branches/presentation3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation3
- Property svn:mergeinfo changed
/code/branches/fps (added) merged: 6591,6639,6819-6826,6866-6867,6872,6882-6883,6908,7052-7053,7055,7057,7059,7070
- Property svn:mergeinfo changed
-
code/branches/presentation3/src/orxonox/controllers/NewHumanController.cc
r6951 r7073 216 216 { 217 217 if (this->getControllableEntity() && (this->getControllableEntity()->isExactlyA(ClassByString("SpaceShip")) || this->getControllableEntity()->isExactlyA(ClassByString("Rocket")))) 218 this->showOverlays(); 218 {this->showOverlays();} 219 220 if (this->getControllableEntity() && this->getControllableEntity()->isExactlyA(ClassByString("FpsPlayer")))\ 221 {this->showOverlays(); 222 this->hideArrows();} 219 223 220 224 this->crossHairOverlay_->setPosition(Vector2(static_cast<float>(this->currentYaw_)/2*-1+.5f-overlaySize_/2, static_cast<float>(this->currentPitch_)/2*-1+.5f-overlaySize_/2)); … … 437 441 HumanController::yaw(value); 438 442 439 this->currentYaw_ = value.x; 443 if (this->getControllableEntity() && !this->getControllableEntity()->isExactlyA(ClassByString("FpsPlayer"))) 444 this->currentYaw_ = value.x; 440 445 } 441 446 … … 446 451 HumanController::pitch(value); 447 452 448 this->currentPitch_ = value.x; 453 if (this->getControllableEntity() && !this->getControllableEntity()->isExactlyA(ClassByString("FpsPlayer"))) 454 this->currentPitch_ = value.x; 449 455 } 450 456
Note: See TracChangeset
for help on using the changeset viewer.