- Timestamp:
- Oct 6, 2009, 11:12:01 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core5/src/orxonox/controllers/HumanController.cc
r5813 r5896 36 36 #include "infos/PlayerInfo.h" 37 37 #include "overlays/Map.h" 38 #include "sound/SoundManager.h" 38 39 #include "Radar.h" 39 40 #include "Scene.h" … … 77 78 } 78 79 80 void HumanController::tick(float dt) 81 { 82 if (HumanController::localController_s && HumanController::localController_s->controllableEntity_) 83 { 84 if (GameMode::playsSound()) 85 { 86 // Update sound listener 87 SoundManager::getInstance().setListenerPosition(HumanController::localController_s->controllableEntity_->getPosition()); 88 SoundManager::getInstance().setListenerOrientation(HumanController::localController_s->controllableEntity_->getOrientation()); 89 } 90 } 91 } 92 79 93 void HumanController::moveFrontBack(const Vector2& value) 80 94 {
Note: See TracChangeset
for help on using the changeset viewer.