fix for latest changes
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user