Skip to content

Commit 15d94ab

Browse files
committed
MM: MM1: Add sound for bumping into walls
1 parent aef18e3 commit 15d94ab

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

engines/mm/mm1/sound.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,19 @@
2121

2222
#include "common/textconsole.h"
2323
#include "mm/mm1/sound.h"
24+
#include "mm/mm1/mm1.h"
2425

2526
namespace MM {
2627
namespace MM1 {
2728

2829
void Sound::sound(SoundId soundNum) {
30+
if (g_engine->isEnhanced()) {
31+
if (soundNum == SOUND_1) {
32+
g_engine->_sound->playSound("gulp.voc");
33+
return;
34+
}
35+
}
36+
2937
warning("TODO: sound %d", (int)soundNum);
3038
}
3139

0 commit comments

Comments
 (0)