diff options
Diffstat (limited to 'src/sound.cpp')
-rw-r--r-- | src/sound.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/sound.cpp b/src/sound.cpp index 6c1039816..cd795560d 100644 --- a/src/sound.cpp +++ b/src/sound.cpp @@ -211,12 +211,11 @@ void SndCopyToPool() */ static void SndPlayScreenCoordFx(SoundFx sound, int left, int right, int top, int bottom) { - Window* const *wz; - if (msf.effect_vol == 0) return; - FOR_ALL_WINDOWS(wz) { - const ViewPort *vp = (*wz)->viewport; + const Window *w; + FOR_ALL_WINDOWS_FROM_BACK(w) { + const ViewPort *vp = w->viewport; if (vp != NULL && left < vp->virtual_left + vp->virtual_width && right > vp->virtual_left && |