sound.c
changeset 926 bd4312619522
parent 679 e959706a3e4d
child 1136 052a24d24813
--- a/sound.c	Fri Jan 07 12:33:28 2005 +0000
+++ b/sound.c	Fri Jan 07 17:02:43 2005 +0000
@@ -331,8 +331,8 @@
 void SndPlayTileFx(SoundFx sound, TileIndex tile)
 {
 	/* emits sound from center (+ 8) of the tile */
-	int x = GET_TILE_X(tile) * 16 + 8;
-	int y = GET_TILE_Y(tile) * 16 + 8;
+	int x = TileX(tile) * 16 + 8;
+	int y = TileY(tile) * 16 + 8;
 	Point pt = RemapCoords(x, y, GetSlopeZ(x, y));
 	SndPlayScreenCoordFx(sound, pt.x, pt.y);
 }