fix for latest changes

This commit is contained in:
ehofman
2009-10-16 11:14:05 +02:00
committed by Tim Moore
parent eab9da98f2
commit f23e8bfb02
+2 -2
View 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();
}
}