Allow looping of local and positional sounds
authorPerttu Ahola <celeron55@gmail.com>
Sun, 8 Apr 2012 11:35:57 +0000 (14:35 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Sun, 8 Apr 2012 11:35:57 +0000 (14:35 +0300)
src/client.cpp

index de3c636988aa0d49f5f37eb75120b25748bf639f..7f92e5176f2b76203777f2aac3ef7fb85b808d7a 100644 (file)
@@ -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);