Allow looping of local and positional sounds

master
Perttu Ahola 2012-04-08 14:35:57 +03:00
parent d8edd3d0c8
commit b58ee690a3
1 changed files with 2 additions and 2 deletions

View File

@ -1639,10 +1639,10 @@ void Client::ProcessData(u8 *data, u32 datasize, u16 sender_peer_id)
int client_id = -1; int client_id = -1;
switch(type){ switch(type){
case 0: // local case 0: // local
client_id = m_sound->playSound(name, false, gain); client_id = m_sound->playSound(name, loop, gain);
break; break;
case 1: // positional case 1: // positional
client_id = m_sound->playSoundAt(name, false, gain, pos); client_id = m_sound->playSoundAt(name, loop, gain, pos);
break; break;
case 2: { // object case 2: { // object
ClientActiveObject *cao = m_env.getActiveObject(object_id); ClientActiveObject *cao = m_env.getActiveObject(object_id);