diff options
author | Paul Gilbert | 2017-09-20 22:33:18 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-09-20 22:33:18 -0400 |
commit | 9127f5245fe10bc9de8efea5a9050d980f3ef241 (patch) | |
tree | 306bdcaa2292fe71fa8eab212af4d4952723db9d /engines/titanic/npcs/doorbot.cpp | |
parent | 32735d59e82d178088b006ba583000fc37995b37 (diff) | |
download | scummvm-rg350-9127f5245fe10bc9de8efea5a9050d980f3ef241.tar.gz scummvm-rg350-9127f5245fe10bc9de8efea5a9050d980f3ef241.tar.bz2 scummvm-rg350-9127f5245fe10bc9de8efea5a9050d980f3ef241.zip |
TITANIC: DE: Adding sound translations
Diffstat (limited to 'engines/titanic/npcs/doorbot.cpp')
-rw-r--r-- | engines/titanic/npcs/doorbot.cpp | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/engines/titanic/npcs/doorbot.cpp b/engines/titanic/npcs/doorbot.cpp index d1bf662189..5512468099 100644 --- a/engines/titanic/npcs/doorbot.cpp +++ b/engines/titanic/npcs/doorbot.cpp @@ -163,27 +163,32 @@ bool CDoorbot::MovieEndMsg(CMovieEndMsg *msg) { } bool CDoorbot::OnSummonBotMsg(COnSummonBotMsg *msg) { - const char *const ROOM_WAVES[8][2] = { - { "EmbLobby", "z#186.wav" }, - { "PromenadeDeck", "z#184.wav" }, - { "Arboretum", "z#188.wav" }, - { "Frozen Arboretum", "z#188.wav" }, - { "Bar", "z#187.wav" }, - { "MusicRoom", "z#185.wav" }, - { "MusicRoomLobby", "z#185.wav" }, - { "1stClassRestaurant", "z#183.wav" }, + struct RoomWave { + const char *_room; + const char *_enSound; + const char *_deSound; + }; + const RoomWave ROOM_WAVES[8] = { + { "EmbLobby", "z#186.wav", "z#716.wav" }, + { "PromenadeDeck", "z#184.wav", "z#714.wav" }, + { "Arboretum", "z#188.wav", "z#718.wav" }, + { "Frozen Arboretum", "z#188.wav", "z#718.wav" }, + { "Bar", "z#187.wav", "z#717.wav" }, + { "MusicRoom", "z#185.wav", "z#715.wav" }, + { "MusicRoomLobby", "z#185.wav", "z#715.wav" }, + { "1stClassRestaurant", "z#183.wav", "z#713.wav" }, }; if (msg->_value != -1) { int idx; for (idx = 0; idx < 8; ++idx) { - if (compareRoomNameTo(ROOM_WAVES[idx][0])) { - playSound(ROOM_WAVES[idx][1]); + if (compareRoomNameTo(ROOM_WAVES[idx]._room)) { + playSound(TRANSLATE(ROOM_WAVES[idx]._enSound, ROOM_WAVES[idx]._deSound)); break; } } if (idx == 8) - playSound("z#146.wav"); + playSound(TRANSLATE("z#146.wav", "z#702.wav")); sleep(2000); } |