From: ehofman Date: Wed, 4 Nov 2009 10:25:59 +0000 (+0000) Subject: small fixes X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0f39f05fa13b0cf185f0a2b5a7b1f262d72a4b35;p=simgear.git small fixes --- diff --git a/simgear/environment/visual_enviro.cxx b/simgear/environment/visual_enviro.cxx index e18ebede..b0cb2190 100644 --- a/simgear/environment/visual_enviro.cxx +++ b/simgear/environment/visual_enviro.cxx @@ -755,8 +755,8 @@ void SGEnviro::drawLightning(void) { ay = sin(course) * dist; SGSharedPtr snd = sampleGroup->find("thunder"); if( snd ) { - SGVec3f pos = SGVec3f(ax, ay, -sgEnviro.last_alt); - snd->set_relative_position(pos); + SGVec3d pos = SGVec3d(ax, ay, -sgEnviro.last_alt); + snd->set_position(pos); snd->play_once(); } } diff --git a/simgear/sound/sample_group.cxx b/simgear/sound/sample_group.cxx index c10d2dce..539ab61b 100644 --- a/simgear/sound/sample_group.cxx +++ b/simgear/sound/sample_group.cxx @@ -114,7 +114,7 @@ void SGSampleGroup::update( double dt ) { } // Update the position and orientation information for all samples. - if ( _changed ) { + if ( _changed || _smgr->has_changed() ) { update_pos_and_orientation(); _changed = false; }