Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actually unpause 3D beam sounds correctly. #1445

Merged
merged 1 commit into from Aug 24, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 8 additions & 2 deletions code/weapon/beam.cpp
Expand Up @@ -717,8 +717,14 @@ void beam_unpause_sounds()
if(moveup == NULL){
return;
}
while(moveup != END_OF_LIST(&Beam_used_list)){
beam_recalc_sounds(moveup);
while(moveup != END_OF_LIST(&Beam_used_list)){
if (Cmdline_no_3d_sound) {
beam_recalc_sounds(moveup);
} else {
if (moveup->beam_sound_loop >= 0) {
snd_set_volume(moveup->beam_sound_loop, 1.0f);
}
}

// next beam
moveup = GET_NEXT(moveup);
Expand Down