summaryrefslogtreecommitdiff
path: root/src/gui/okdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-02-28 22:16:23 +0300
committerAndrei Karas <akaras@inbox.ru>2012-02-28 22:16:23 +0300
commitbbf5743dd18e78298376da6f78c71ae2a524c766 (patch)
tree64ff82f070ce5022b6adc26c5c1727fb38f13794 /src/gui/okdialog.cpp
parent8a3adb5dc695fec3f4db5f0705c53687862fb801 (diff)
downloadmanaplus-bbf5743dd18e78298376da6f78c71ae2a524c766.tar.gz
manaplus-bbf5743dd18e78298376da6f78c71ae2a524c766.tar.bz2
manaplus-bbf5743dd18e78298376da6f78c71ae2a524c766.tar.xz
manaplus-bbf5743dd18e78298376da6f78c71ae2a524c766.zip
Fix some sound event.
Replace hardcoded sound names to constants. Add party/guild sound.
Diffstat (limited to 'src/gui/okdialog.cpp')
-rw-r--r--src/gui/okdialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/okdialog.cpp b/src/gui/okdialog.cpp
index fe22cf008..3259cb6d6 100644
--- a/src/gui/okdialog.cpp
+++ b/src/gui/okdialog.cpp
@@ -76,9 +76,9 @@ OkDialog::OkDialog(const std::string &title, const std::string &msg,
okButton->requestFocus();
if (soundEvent == DIALOG_OK)
- sound.playGuiSound("soundinfo");
+ sound.playGuiSound(SOUND_INFO);
else if (soundEvent == DIALOG_ERROR)
- sound.playGuiSound("sounderror");
+ sound.playGuiSound(SOUND_ERROR);
}
void OkDialog::action(const gcn::ActionEvent &event)