From f23e8bfb0209d5c12ac3099e69bfb7fe844dc8c8 Mon Sep 17 00:00:00 2001 From: ehofman Date: Thu, 15 Oct 2009 12:00:20 +0000 Subject: [PATCH] fix for latest changes --- simgear/environment/visual_enviro.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simgear/environment/visual_enviro.cxx b/simgear/environment/visual_enviro.cxx index 71a0c5ea..e18ebede 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 ) { - 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(); } } -- 2.39.5