diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-01-13 16:41:34 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-01-13 16:41:34 +0200 |
commit | 6c885855b0c06bd7c4b6ab3574d8e2f3398ad97a (patch) | |
tree | b4371bafbfc998960fcfe7bae64b845ca1b2741f /src/sound.h | |
parent | eb201e566677f5ae55d1c443aa4254b99cec9e3e (diff) | |
download | manaverse-6c885855b0c06bd7c4b6ab3574d8e2f3398ad97a.tar.gz manaverse-6c885855b0c06bd7c4b6ab3574d8e2f3398ad97a.tar.bz2 manaverse-6c885855b0c06bd7c4b6ab3574d8e2f3398ad97a.tar.xz manaverse-6c885855b0c06bd7c4b6ab3574d8e2f3398ad97a.zip |
Remove playSfx duplicate function and add check for negative volume.
Diffstat (limited to 'src/sound.h')
-rw-r--r-- | src/sound.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/sound.h b/src/sound.h index 92c0ab41a..de34a48f0 100644 --- a/src/sound.h +++ b/src/sound.h @@ -91,9 +91,7 @@ class Sound : public ConfigListener * * @param path The resource path to the sound file. */ - void playSfx(const std::string &path); - - void playSfx(const std::string &path, int x, int y); + void playSfx(const std::string &path, int x = 0, int y = 0); /** * Plays an item for gui. |