diff options
author | onefang | 2021-08-27 01:58:51 +1000 |
---|---|---|
committer | onefang | 2021-08-27 01:58:51 +1000 |
commit | 6e505a7d979e7ab27d98c16d6d38c3b3a4088e04 (patch) | |
tree | 1d545234820a254018d37f7947634c125571c3ff /OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs | |
parent | Comment++ (diff) | |
download | opensim-SC-6e505a7d979e7ab27d98c16d6d38c3b3a4088e04.zip opensim-SC-6e505a7d979e7ab27d98c16d6d38c3b3a4088e04.tar.gz opensim-SC-6e505a7d979e7ab27d98c16d6d38c3b3a4088e04.tar.bz2 opensim-SC-6e505a7d979e7ab27d98c16d6d38c3b3a4088e04.tar.xz |
Properly use ScriptBaseClass.DEBUG_CHANNEL.
I got it wrong last time.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs index 5425a24..049b510 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs | |||
@@ -947,12 +947,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance | |||
947 | { | 947 | { |
948 | ScenePresence sp = Engine.World.GetScenePresence(Part.OwnerID); | 948 | ScenePresence sp = Engine.World.GetScenePresence(Part.OwnerID); |
949 | if (sp != null && !sp.IsNPC) | 949 | if (sp != null && !sp.IsNPC) |
950 | Engine.World.SimChatToAgent(Part.OwnerID, Utils.StringToBytes(text), (int) ChatTypeEnum.DebugChannel, Part.AbsolutePosition, | 950 | Engine.World.SimChatToAgent(Part.OwnerID, Utils.StringToBytes(text), ScriptBaseClass.DEBUG_CHANNEL, Part.AbsolutePosition, |
951 | Part.Name, Part.UUID, false); | 951 | Part.Name, Part.UUID, false); |
952 | } | 952 | } |
953 | else | 953 | else |
954 | Engine.World.SimChat(Utils.StringToBytes(text), | 954 | Engine.World.SimChat(Utils.StringToBytes(text), |
955 | ChatTypeEnum.DebugChannel, 2147483647, | 955 | ChatTypeEnum.DebugChannel, ScriptBaseClass.DEBUG_CHANNEL, |
956 | Part.AbsolutePosition, | 956 | Part.AbsolutePosition, |
957 | Part.Name, Part.UUID, false); | 957 | Part.Name, Part.UUID, false); |
958 | m_log.Debug(string.Format( | 958 | m_log.Debug(string.Format( |
@@ -974,7 +974,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance | |||
974 | if (text.Length > 1000) | 974 | if (text.Length > 1000) |
975 | text = text.Substring(0, 1000); | 975 | text = text.Substring(0, 1000); |
976 | Engine.World.SimChat(Utils.StringToBytes(text), | 976 | Engine.World.SimChat(Utils.StringToBytes(text), |
977 | ChatTypeEnum.DebugChannel, 2147483647, | 977 | ChatTypeEnum.DebugChannel, ScriptBaseClass.DEBUG_CHANNEL, |
978 | Part.AbsolutePosition, | 978 | Part.AbsolutePosition, |
979 | Part.Name, Part.UUID, false); | 979 | Part.Name, Part.UUID, false); |
980 | 980 | ||