diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-12 00:59:10 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-12 00:59:10 -0500 |
commit | 303b3fae53227446f683909bbf13edc6b2f1450b (patch) | |
tree | 97c6bc8bbacff7bc0a4b21290664f1c64f84c86d /src | |
parent | 0a3ec1862fd479295639a38ab4799e4d36e12c13 (diff) | |
download | tanetane-303b3fae53227446f683909bbf13edc6b2f1450b.tar.gz tanetane-303b3fae53227446f683909bbf13edc6b2f1450b.tar.bz2 tanetane-303b3fae53227446f683909bbf13edc6b2f1450b.zip |
Added sfx for selecting message choices
Diffstat (limited to 'src')
-rw-r--r-- | src/message_system.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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"); |