X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fenvironment%2Fvisual_enviro.cxx;h=b0cb219059f4b8ceecf844b8d7cb3581a0c85886;hb=aa2ed5fb0cb16766f440231f23581bb90e9963d8;hp=e18ebededb47e96df1986d0dee94bbeaf457dc9c;hpb=f23e8bfb0209d5c12ac3099e69bfb7fe844dc8c8;p=simgear.git 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(); } }