]> git.mxchange.org Git - simgear.git/blobdiff - simgear/sound/sample_openal.cxx
.. and remove some debugging code
[simgear.git] / simgear / sound / sample_openal.cxx
index c5ced562963a576424bfc11181b3ce0e479cf9bb..91b08527b712554d44d50b8b11f2247fb3daf15e 100644 (file)
@@ -182,12 +182,10 @@ void SGSoundSample::set_position( const SGGeod& pos ) {
 
 void SGSoundSample::update_absolute_position() {
     SGQuatd orient = SGQuatd::fromLonLat(_base_pos) * _orientation;
-    _orivec = -toVec3f(orient.rotate(_direction));
-//printf("ori: %f %f %f\n", _orivec[0], _orivec[1], _orivec[2]);
+    _orivec = -toVec3f(orient.rotate(-SGVec3d::e1()));
 
     orient = SGQuatd::fromRealImag(0, _relative_pos) * _orientation;
     _absolute_pos = -SGVec3d::fromGeod(_base_pos); // -orient.rotate(SGVec3d::e1());
-//printf("pos: %f %f %f\n", _absolute_pos[0], _absolute_pos[1], _absolute_pos[2]);
 }
 
 string SGSoundSample::random_string() {