small fixes

This commit is contained in:
ehofman
2009-11-04 10:25:59 +00:00
committed by Tim Moore
parent 8d551c2664
commit 0f39f05fa1
2 changed files with 3 additions and 3 deletions

View File

@@ -755,8 +755,8 @@ void SGEnviro::drawLightning(void) {
ay = sin(course) * dist;
SGSharedPtr<SGSoundSample> 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();
}
}

View File

@@ -114,7 +114,7 @@ void SGSampleGroup::update( double dt ) {
}
// Update the position and orientation information for all samples.
if ( _changed ) {
if ( _changed || _smgr->has_changed() ) {
update_pos_and_orientation();
_changed = false;
}