diff options
-rw-r--r-- | res/sfx/left_selection.wav | bin | 0 -> 55880 bytes | |||
-rw-r--r-- | res/sfx/right_selection.wav | bin | 0 -> 54056 bytes | |||
-rw-r--r-- | src/message_system.cpp | 8 |
3 files changed, 8 insertions, 0 deletions
diff --git a/res/sfx/left_selection.wav b/res/sfx/left_selection.wav new file mode 100644 index 0000000..ce7c0bb --- /dev/null +++ b/res/sfx/left_selection.wav | |||
Binary files differ | |||
diff --git a/res/sfx/right_selection.wav b/res/sfx/right_selection.wav new file mode 100644 index 0000000..faff212 --- /dev/null +++ b/res/sfx/right_selection.wav | |||
Binary files differ | |||
diff --git a/src/message_system.cpp b/src/message_system.cpp index 98b5f83..32ee847 100644 --- a/src/message_system.cpp +++ b/src/message_system.cpp | |||
@@ -236,6 +236,14 @@ void MessageSystem::advanceText() { | |||
236 | showNextArrow_ = false; | 236 | showNextArrow_ = false; |
237 | 237 | ||
238 | if (lines_.empty()) { | 238 | if (lines_.empty()) { |
239 | if (isChoiceActive()) { | ||
240 | if (choiceSelection_ == 0) { | ||
241 | game_.getMixer().playSound("../res/sfx/left_selection.wav"); | ||
242 | } else { | ||
243 | game_.getMixer().playSound("../res/sfx/right_selection.wav"); | ||
244 | } | ||
245 | } | ||
246 | |||
239 | linesToShow_.clear(); | 247 | linesToShow_.clear(); |
240 | } else { | 248 | } else { |
241 | game_.getMixer().playSound("../res/sfx/pageflip.wav"); | 249 | game_.getMixer().playSound("../res/sfx/pageflip.wav"); |