src/sound.cpp
branchcpp_gui
changeset 6258 a2f86b8fd99b
parent 6235 5077e6ed3788
child 6298 c30fe89622df
equal deleted inserted replaced
6257:2ffe947969ca 6258:a2f86b8fd99b
   194 static void SndPlayScreenCoordFx(SoundFx sound, int x, int y)
   194 static void SndPlayScreenCoordFx(SoundFx sound, int x, int y)
   195 {
   195 {
   196 
   196 
   197 	if (msf.effect_vol == 0) return;
   197 	if (msf.effect_vol == 0) return;
   198 
   198 
   199 	Window *w;
   199 	BaseWindow *w;
   200 	FOR_ALL_WINDOWS(w) {
   200 	FOR_ALL_WINDOWS(w) {
   201 		const ViewPort *vp = w->viewport;
   201 		const ViewPort *vp = w->viewport;
   202 
   202 
   203 		if (vp != NULL &&
   203 		if (vp != NULL &&
   204 				IS_INSIDE_1D(x, vp->virtual_left, vp->virtual_width) &&
   204 				IS_INSIDE_1D(x, vp->virtual_left, vp->virtual_width) &&