diff options
author | maedhros <maedhros@openttd.org> | 2007-03-19 11:27:30 +0000 |
---|---|---|
committer | maedhros <maedhros@openttd.org> | 2007-03-19 11:27:30 +0000 |
commit | 73ff939ddbb4772178de68f821d9c32ded846a06 (patch) | |
tree | 8ccaccab74c6399452d6ff3f09d5c94335516a62 /src/newgrf_sound.cpp | |
parent | ae48a7447be849bdad48ca5996a246d29165f39e (diff) | |
download | openttd-73ff939ddbb4772178de68f821d9c32ded846a06.tar.xz |
(svn r9315) -Merge: The newhouses branch. With this merge comes almost complete support for
the newhouses grf specs, so all newhouses grfs will be playable in the game.
Many thanks to everyone who contributed code and ideas, and all the testers
who found things we missed.
Diffstat (limited to 'src/newgrf_sound.cpp')
-rw-r--r-- | src/newgrf_sound.cpp | 9 |
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; +} |