Skip to content

Commit

Permalink
Book: Remove duplicated page turn sound when clicking top tabs
Browse files Browse the repository at this point in the history
Fixes: issue #1125
  • Loading branch information
dscharrer committed Jan 10, 2018
1 parent 5322593 commit ed1bc8d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/gui/book/Book.cpp
Expand Up @@ -346,7 +346,6 @@ void PlayerBook::drawTopTabs() {

// Check for click
if(eeMouseDown1() || eeMouseDown2()) {
ARX_SOUND_PlayInterface(SND_BOOK_PAGE_TURN, Random::getf(0.9f, 1.1f));
openPage(BOOKMODE_STATS);
pTextManage->Clear();
}
Expand Down Expand Up @@ -379,7 +378,6 @@ void PlayerBook::drawTopTabs() {

// Check for click
if(eeMouseDown1() || eeMouseDown2()) {
ARX_SOUND_PlayInterface(SND_BOOK_PAGE_TURN, Random::getf(0.9f, 1.1f));
openPage(BOOKMODE_SPELLS);
pTextManage->Clear();
}
Expand All @@ -402,7 +400,6 @@ void PlayerBook::drawTopTabs() {

// Check for click
if(eeMouseDown1() || eeMouseDown2()) {
ARX_SOUND_PlayInterface(SND_BOOK_PAGE_TURN, Random::getf(0.9f, 1.1f));
openPage(BOOKMODE_MINIMAP);
pTextManage->Clear();
}
Expand All @@ -424,7 +421,6 @@ void PlayerBook::drawTopTabs() {

// Check for click
if(eeMouseDown1() || eeMouseDown2()) {
ARX_SOUND_PlayInterface(SND_BOOK_PAGE_TURN, Random::getf(0.9f, 1.1f));
openPage(BOOKMODE_QUESTS);
pTextManage->Clear();
}
Expand Down

0 comments on commit ed1bc8d

Please sign in to comment.