aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-04-08 14:35:57 +0300
committerPerttu Ahola <celeron55@gmail.com>2012-04-08 14:35:57 +0300
commitb58ee690a3e4744b712a9e831c99a29b3102f76e (patch)
treedf90b685ef0daa5e659ff7cc839b238ef743cc8b /src
parentd8edd3d0c87aeb5fcff4859a151e478f6f93932e (diff)
downloadminetest-b58ee690a3e4744b712a9e831c99a29b3102f76e.tar.gz
minetest-b58ee690a3e4744b712a9e831c99a29b3102f76e.tar.bz2
minetest-b58ee690a3e4744b712a9e831c99a29b3102f76e.zip
Allow looping of local and positional sounds
Diffstat (limited to 'src')
-rw-r--r--src/client.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client.cpp b/src/client.cpp
index de3c63698..7f92e5176 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -1639,10 +1639,10 @@ void Client::ProcessData(u8 *data, u32 datasize, u16 sender_peer_id)
int client_id = -1;
switch(type){
case 0: // local
- client_id = m_sound->playSound(name, false, gain);
+ client_id = m_sound->playSound(name, loop, gain);
break;
case 1: // positional
- client_id = m_sound->playSoundAt(name, false, gain, pos);
+ client_id = m_sound->playSoundAt(name, loop, gain, pos);
break;
case 2: { // object
ClientActiveObject *cao = m_env.getActiveObject(object_id);