Fix sounds so that they play from inventory after teleport rather than only on initial login region.

Regression from commit ed162a10 (Fri Oct 5 13:50:12 2012)
We had started listening for the client login event for attaching the sound trigger event rather than OnNewClient
Addresses http://opensimulator.org/mantis/view.php?id=6453
Many thanks to danbanner for identifying the exact commit where this went wrong, which made identifying the fix easy.
0.7.5-pf-bulletsim
Justin Clark-Casey (justincc) 2012-12-13 01:03:35 +00:00
parent 512e4c9313
commit 6fca93f0b1
1 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ namespace OpenSim.Region.CoreModules.World.Sound
public void RemoveRegion(Scene scene)
{
m_scene.EventManager.OnClientLogin -= OnNewClient;
m_scene.EventManager.OnNewClient -= OnNewClient;
}
public void RegionLoaded(Scene scene)
@ -85,7 +85,7 @@ namespace OpenSim.Region.CoreModules.World.Sound
return;
m_scene = scene;
m_scene.EventManager.OnClientLogin += OnNewClient;
m_scene.EventManager.OnNewClient += OnNewClient;
m_scene.RegisterModuleInterface<ISoundModule>(this);
}