fix for latest changes
This commit is contained in:
@@ -755,8 +755,8 @@ void SGEnviro::drawLightning(void) {
|
|||||||
ay = sin(course) * dist;
|
ay = sin(course) * dist;
|
||||||
SGSharedPtr<SGSoundSample> snd = sampleGroup->find("thunder");
|
SGSharedPtr<SGSoundSample> snd = sampleGroup->find("thunder");
|
||||||
if( snd ) {
|
if( snd ) {
|
||||||
SGVec3d pos = SGVec3d(ax, ay, -sgEnviro.last_alt);
|
SGVec3f pos = SGVec3f(ax, ay, -sgEnviro.last_alt);
|
||||||
snd->set_base_position(pos);
|
snd->set_relative_position(pos);
|
||||||
snd->play_once();
|
snd->play_once();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user