From 0f39f05fa13b0cf185f0a2b5a7b1f262d72a4b35 Mon Sep 17 00:00:00 2001 From: ehofman Date: Wed, 4 Nov 2009 10:25:59 +0000 Subject: [PATCH] small fixes --- simgear/environment/visual_enviro.cxx | 4 ++-- simgear/sound/sample_group.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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; } -- 2.39.5