From 6fca93f0b1343bad8582d10634a4ae4dc161e401 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Thu, 13 Dec 2012 01:03:35 +0000 Subject: 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. --- OpenSim/Region/CoreModules/World/Sound/SoundModule.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/CoreModules/World') diff --git a/OpenSim/Region/CoreModules/World/Sound/SoundModule.cs b/OpenSim/Region/CoreModules/World/Sound/SoundModule.cs index 089fcda..883045a 100644 --- a/OpenSim/Region/CoreModules/World/Sound/SoundModule.cs +++ b/OpenSim/Region/CoreModules/World/Sound/SoundModule.cs @@ -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(this); } -- cgit v1.1