Changeset 6191 for code/branches/presentation2/src/orxonox/controllers
- Timestamp:
- Dec 2, 2009, 9:06:19 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2/src/orxonox/controllers/HumanController.cc
r6159 r6191 36 36 #include "infos/PlayerInfo.h" 37 37 #include "overlays/Map.h" 38 #include "graphics/Camera.h"39 #include "sound/SoundManager.h"40 38 #include "Radar.h" 41 39 #include "Scene.h" … … 83 81 if (GameMode::playsSound() && HumanController::localController_s && HumanController::localController_s->controllableEntity_) 84 82 { 85 // Update sound listener86 83 Camera* camera = HumanController::localController_s->controllableEntity_->getCamera(); 87 if (camera) 88 { 89 SoundManager::getInstance().setListenerPosition(camera->getWorldPosition()); 90 SoundManager::getInstance().setListenerOrientation(camera->getWorldOrientation()); 91 } 92 else 84 if (!camera) 93 85 COUT(3) << "HumanController, Warning: Using a ControllableEntity without Camera" << std::endl; 94 86 }
Note: See TracChangeset
for help on using the changeset viewer.