summaryrefslogtreecommitdiff
path: root/sound.c
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2006-04-03 05:32:11 +0000
committercelestar <celestar@openttd.org>2006-04-03 05:32:11 +0000
commit6443c14ebd7ed0f9920673c218eaaa1172076a5f (patch)
tree7d8babf7cbe0b9ecf1ebc12e27848ef54f79d0e3 /sound.c
parent16c721237bc2ac93b80bb1a22fae1340158b7d71 (diff)
downloadopenttd-6443c14ebd7ed0f9920673c218eaaa1172076a5f.tar.xz
(svn r4246) -Codechange. Replaced about 100 occurences of '16' by TILE_SIZE
Diffstat (limited to 'sound.c')
-rw-r--r--sound.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound.c b/sound.c
index a0fab3655..0c63825e2 100644
--- a/sound.c
+++ b/sound.c
@@ -208,8 +208,8 @@ static void SndPlayScreenCoordFx(SoundFx sound, int x, int y)
void SndPlayTileFx(SoundFx sound, TileIndex tile)
{
/* emits sound from center (+ 8) of the tile */
- int x = TileX(tile) * 16 + 8;
- int y = TileY(tile) * 16 + 8;
+ int x = TileX(tile) * TILE_SIZE + 8;
+ int y = TileY(tile) * TILE_SIZE + 8;
Point pt = RemapCoords(x, y, GetSlopeZ(x, y));
SndPlayScreenCoordFx(sound, pt.x, pt.y);
}