From 6c885855b0c06bd7c4b6ab3574d8e2f3398ad97a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 13 Jan 2011 16:41:34 +0200 Subject: Remove playSfx duplicate function and add check for negative volume. --- src/sound.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/sound.h') 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. -- cgit v1.2.3-60-g2f50