]> git.mxchange.org Git - simgear.git/blobdiff - simgear/environment/visual_enviro.cxx
Allow tasks to be removed from the EventManager by name.
[simgear.git] / simgear / environment / visual_enviro.cxx
index e18ebededb47e96df1986d0dee94bbeaf457dc9c..b0cb219059f4b8ceecf844b8d7cb3581a0c85886 100644 (file)
@@ -755,8 +755,8 @@ void SGEnviro::drawLightning(void) {
                                ay = sin(course) * dist;
                                SGSharedPtr<SGSoundSample> 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();
                                }
                        }