src/newgrf_sound.cpp
branchgamebalance
changeset 9896 2473804114de
parent 9895 7bd07f43b0e3
child 6674 64f4781b4653
--- a/src/newgrf_sound.cpp	Mon Mar 19 12:38:16 2007 +0000
+++ b/src/newgrf_sound.cpp	Mon Mar 19 12:49:55 2007 +0000
@@ -66,3 +66,12 @@
 	if (callback < GetNumSounds()) SndPlayVehicleFx((SoundFx)callback, v);
 	return true;
 }
+
+bool PlayHouseSound(uint16 sound_id, TileIndex tile)
+{
+	if (sound_id < GetNumOriginalSounds()) {
+		SndPlayTileFx((SoundFx)sound_id, tile);
+		return true;
+	}
+	return false;
+}