sound.c
changeset 3421 7968a4b5ff0a
parent 2989 916f9443345f
child 3645 7f950533d510
equal deleted inserted replaced
3420:91b03523125b 3421:7968a4b5ff0a
   206 }
   206 }
   207 
   207 
   208 void SndPlayTileFx(SoundFx sound, TileIndex tile)
   208 void SndPlayTileFx(SoundFx sound, TileIndex tile)
   209 {
   209 {
   210 	/* emits sound from center (+ 8) of the tile */
   210 	/* emits sound from center (+ 8) of the tile */
   211 	int x = TileX(tile) * 16 + 8;
   211 	int x = TileX(tile) * TILE_SIZE + 8;
   212 	int y = TileY(tile) * 16 + 8;
   212 	int y = TileY(tile) * TILE_SIZE + 8;
   213 	Point pt = RemapCoords(x, y, GetSlopeZ(x, y));
   213 	Point pt = RemapCoords(x, y, GetSlopeZ(x, y));
   214 	SndPlayScreenCoordFx(sound, pt.x, pt.y);
   214 	SndPlayScreenCoordFx(sound, pt.x, pt.y);
   215 }
   215 }
   216 
   216 
   217 void SndPlayVehicleFx(SoundFx sound, const Vehicle *v)
   217 void SndPlayVehicleFx(SoundFx sound, const Vehicle *v)