equal
deleted
inserted
replaced
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) && |