]> git.mxchange.org Git - simgear.git/commitdiff
fix for latest changes
authorehofman <ehofman>
Thu, 15 Oct 2009 12:00:20 +0000 (12:00 +0000)
committerTim Moore <timoore@redhat.com>
Fri, 16 Oct 2009 09:14:05 +0000 (11:14 +0200)
simgear/environment/visual_enviro.cxx

index 71a0c5eaee71b2405ae1392bc9b032afd9ae0e9a..e18ebededb47e96df1986d0dee94bbeaf457dc9c 100644 (file)
@@ -755,8 +755,8 @@ void SGEnviro::drawLightning(void) {
                                ay = sin(course) * dist;
                                SGSharedPtr<SGSoundSample> snd = sampleGroup->find("thunder");
                                if( snd ) {
-                                       SGVec3d pos = SGVec3d(ax, ay, -sgEnviro.last_alt);
-                                       snd->set_base_position(pos);
+                                       SGVec3f pos = SGVec3f(ax, ay, -sgEnviro.last_alt);
+                                       snd->set_relative_position(pos);
                                        snd->play_once();
                                }
                        }