Skip to content

Commit d5a95ed

Browse files
committed
Made the ambient sound come from the center of its collision.
1 parent b33e290 commit d5a95ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/object/ambient_sound.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ AmbientSound::start_playing()
149149

150150
sound_source->set_gain(0);
151151
sound_source->set_looping(true);
152-
sound_source->set_relative(true);
152+
sound_source->set_position(m_col.m_bbox.get_middle());
153153
currentvolume=targetvolume=1e-20f;
154154
sound_source->play();
155155
} catch(std::exception& e) {

0 commit comments

Comments
 (0)