summaryrefslogtreecommitdiff
path: root/src/newgrf_sound.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/newgrf_sound.cpp')
-rw-r--r--src/newgrf_sound.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/newgrf_sound.cpp b/src/newgrf_sound.cpp
index 136ea84a3..8064546fe 100644
--- a/src/newgrf_sound.cpp
+++ b/src/newgrf_sound.cpp
@@ -66,3 +66,12 @@ bool PlayVehicleSound(const Vehicle *v, VehicleSoundEvent event)
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;
+}