summaryrefslogtreecommitdiff
path: root/src/sound.cpp
diff options
context:
space:
mode:
authorskidd13 <skidd13@openttd.org>2007-11-24 10:38:43 +0000
committerskidd13 <skidd13@openttd.org>2007-11-24 10:38:43 +0000
commitbf959f926ff6dee99a15d91652256169a6484042 (patch)
tree9c936ecbb5e2e4367788a18a55cbf52eb6eb6cc6 /src/sound.cpp
parent64246a2775c56c99746727a02af509fe8d75d53f (diff)
downloadopenttd-bf959f926ff6dee99a15d91652256169a6484042.tar.xz
(svn r11510) -Codechange: merge the IS_*INSIDE* functions and rename them fitting to the naming style
Diffstat (limited to 'src/sound.cpp')
-rw-r--r--src/sound.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sound.cpp b/src/sound.cpp
index 2ef724cee..5a3cb7638 100644
--- a/src/sound.cpp
+++ b/src/sound.cpp
@@ -209,8 +209,8 @@ static void SndPlayScreenCoordFx(SoundFx sound, int x, int y)
const ViewPort *vp = (*wz)->viewport;
if (vp != NULL &&
- IS_INSIDE_1D(x, vp->virtual_left, vp->virtual_width) &&
- IS_INSIDE_1D(y, vp->virtual_top, vp->virtual_height)) {
+ IsInsideBS(x, vp->virtual_left, vp->virtual_width) &&
+ IsInsideBS(y, vp->virtual_top, vp->virtual_height)) {
int left = (x - vp->virtual_left);
StartSound(