File diff r10854:9dc46af240e5 → r10855:5a3c2f38f98e
src/sound.cpp
Show inline comments
 
@@ -237,8 +237,8 @@ static void SndPlayScreenCoordFx(SoundFx
 
void SndPlayTileFx(SoundFx sound, TileIndex tile)
 
{
 
	/* emits sound from center of the tile */
 
	int x = TileX(tile) * TILE_SIZE + TILE_SIZE / 2;
 
	int y = TileY(tile) * TILE_SIZE - TILE_SIZE / 2;
 
	int x = min(MapMaxX() - 1, TileX(tile)) * TILE_SIZE + TILE_SIZE / 2;
 
	int y = min(MapMaxY() - 1, TileY(tile)) * TILE_SIZE - TILE_SIZE / 2;
 
	uint z = (y < 0 ? 0 : GetSlopeZ(x, y));
 
	Point pt = RemapCoords(x, y, z);
 
	y += 2 * TILE_SIZE;