diff options
Diffstat (limited to 'OpenSim/Region')
7 files changed, 60 insertions, 39 deletions
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RegionCache.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RegionCache.cs index ea205a2..2b336bb 100644 --- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RegionCache.cs +++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Grid/RegionCache.cs | |||
@@ -1,4 +1,31 @@ | |||
1 | using System; | 1 | /* |
2 | * Copyright (c) Contributors, http://opensimulator.org/ | ||
3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. | ||
4 | * | ||
5 | * Redistribution and use in source and binary forms, with or without | ||
6 | * modification, are permitted provided that the following conditions are met: | ||
7 | * * Redistributions of source code must retain the above copyright | ||
8 | * notice, this list of conditions and the following disclaimer. | ||
9 | * * Redistributions in binary form must reproduce the above copyright | ||
10 | * notice, this list of conditions and the following disclaimer in the | ||
11 | * documentation and/or other materials provided with the distribution. | ||
12 | * * Neither the name of the OpenSimulator Project nor the | ||
13 | * names of its contributors may be used to endorse or promote products | ||
14 | * derived from this software without specific prior written permission. | ||
15 | * | ||
16 | * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY | ||
17 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
19 | * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY | ||
20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | ||
23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
26 | */ | ||
27 | |||
28 | using System; | ||
2 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
3 | using System.Reflection; | 30 | using System.Reflection; |
4 | 31 | ||
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs index 51bb114..ec262b0 100644 --- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs | |||
@@ -3517,7 +3517,7 @@ if (m_shape != null) { | |||
3517 | } | 3517 | } |
3518 | else | 3518 | else |
3519 | { // Remove VolumeDetect in any case. Note, it's safe to call SetVolumeDetect as often as you like | 3519 | { // Remove VolumeDetect in any case. Note, it's safe to call SetVolumeDetect as often as you like |
3520 | // (mumbles, well, at least if you have infinte CPU powers :-) ) | 3520 | // (mumbles, well, at least if you have infinte CPU powers :-)) |
3521 | PhysicsActor pa = this.PhysActor; | 3521 | PhysicsActor pa = this.PhysActor; |
3522 | if (pa != null) | 3522 | if (pa != null) |
3523 | { | 3523 | { |
diff --git a/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchVoiceModule.cs b/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchVoiceModule.cs index 6b30959..c7bb56a 100644 --- a/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchVoiceModule.cs +++ b/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchVoiceModule.cs | |||
@@ -260,12 +260,12 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice | |||
260 | 260 | ||
261 | public void PostInitialise() | 261 | public void PostInitialise() |
262 | { | 262 | { |
263 | if(m_pluginEnabled) | 263 | if (m_pluginEnabled) |
264 | { | 264 | { |
265 | m_log.Info("[FreeSwitchVoice] registering IVoiceModule with the scene"); | 265 | m_log.Info("[FreeSwitchVoice] registering IVoiceModule with the scene"); |
266 | 266 | ||
267 | // register the voice interface for this module, so the script engine can call us | 267 | // register the voice interface for this module, so the script engine can call us |
268 | m_scene.RegisterModuleInterface<IVoiceModule>(this); | 268 | m_scene.RegisterModuleInterface<IVoiceModule>(this); |
269 | } | 269 | } |
270 | } | 270 | } |
271 | 271 | ||
@@ -811,7 +811,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice | |||
811 | 811 | ||
812 | lock (m_ParcelAddress) | 812 | lock (m_ParcelAddress) |
813 | { | 813 | { |
814 | if (m_ParcelAddress.ContainsKey( land.GlobalID.ToString() )) | 814 | if (m_ParcelAddress.ContainsKey(land.GlobalID.ToString())) |
815 | { | 815 | { |
816 | m_log.DebugFormat("[FreeSwitchVoice]: parcel id {0}: using sip address {1}", | 816 | m_log.DebugFormat("[FreeSwitchVoice]: parcel id {0}: using sip address {1}", |
817 | land.GlobalID, m_ParcelAddress[land.GlobalID.ToString()]); | 817 | land.GlobalID, m_ParcelAddress[land.GlobalID.ToString()]); |
diff --git a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/XmlRpcGroupsServicesConnectorModule.cs b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/XmlRpcGroupsServicesConnectorModule.cs index 805c3d4..964d0bb 100644 --- a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/XmlRpcGroupsServicesConnectorModule.cs +++ b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/XmlRpcGroupsServicesConnectorModule.cs | |||
@@ -871,7 +871,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
871 | m_log.ErrorFormat("[XMLRPCGROUPDATA]: An error has occured while attempting to access the XmlRpcGroups server method: {0}", function); | 871 | m_log.ErrorFormat("[XMLRPCGROUPDATA]: An error has occured while attempting to access the XmlRpcGroups server method: {0}", function); |
872 | m_log.ErrorFormat("[XMLRPCGROUPDATA]: {0} ", e.ToString()); | 872 | m_log.ErrorFormat("[XMLRPCGROUPDATA]: {0} ", e.ToString()); |
873 | 873 | ||
874 | foreach( string ResponseLine in req.RequestResponse.Split(new string[] { Environment.NewLine },StringSplitOptions.None)) | 874 | foreach (string ResponseLine in req.RequestResponse.Split(new string[] { Environment.NewLine },StringSplitOptions.None)) |
875 | { | 875 | { |
876 | m_log.ErrorFormat("[XMLRPCGROUPDATA]: {0} ", ResponseLine); | 876 | m_log.ErrorFormat("[XMLRPCGROUPDATA]: {0} ", ResponseLine); |
877 | } | 877 | } |
diff --git a/OpenSim/Region/Physics/Meshing/Mesh.cs b/OpenSim/Region/Physics/Meshing/Mesh.cs index 7567556..aae8871 100644 --- a/OpenSim/Region/Physics/Meshing/Mesh.cs +++ b/OpenSim/Region/Physics/Meshing/Mesh.cs | |||
@@ -149,7 +149,7 @@ namespace OpenSim.Region.Physics.Meshing | |||
149 | 149 | ||
150 | public float[] getVertexListAsFloatLocked() | 150 | public float[] getVertexListAsFloatLocked() |
151 | { | 151 | { |
152 | if( pinnedVirtexes.IsAllocated ) | 152 | if (pinnedVirtexes.IsAllocated) |
153 | return (float[])(pinnedVirtexes.Target); | 153 | return (float[])(pinnedVirtexes.Target); |
154 | float[] result; | 154 | float[] result; |
155 | 155 | ||
diff --git a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs index 0873035..56eb359 100644 --- a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs +++ b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs | |||
@@ -171,7 +171,7 @@ namespace OpenSim.Region.Physics.Meshing | |||
171 | 171 | ||
172 | } | 172 | } |
173 | 173 | ||
174 | private ulong GetMeshKey( PrimitiveBaseShape pbs, PhysicsVector size, float lod ) | 174 | private ulong GetMeshKey(PrimitiveBaseShape pbs, PhysicsVector size, float lod) |
175 | { | 175 | { |
176 | ulong hash = 5381; | 176 | ulong hash = 5381; |
177 | 177 | ||
diff --git a/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs b/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs index 5a94957..fe26429 100644 --- a/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs +++ b/OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs | |||
@@ -546,11 +546,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools | |||
546 | bool retried = false; | 546 | bool retried = false; |
547 | do | 547 | do |
548 | { | 548 | { |
549 | lock (CScodeProvider) | 549 | lock (CScodeProvider) |
550 | { | 550 | { |
551 | results = CScodeProvider.CompileAssemblyFromSource( | 551 | results = CScodeProvider.CompileAssemblyFromSource( |
552 | parameters, Script); | 552 | parameters, Script); |
553 | } | 553 | } |
554 | // Deal with an occasional segv in the compiler. | 554 | // Deal with an occasional segv in the compiler. |
555 | // Rarely, if ever, occurs twice in succession. | 555 | // Rarely, if ever, occurs twice in succession. |
556 | // Line # == 0 and no file name are indications that | 556 | // Line # == 0 and no file name are indications that |
@@ -573,20 +573,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools | |||
573 | { | 573 | { |
574 | complete = true; | 574 | complete = true; |
575 | } | 575 | } |
576 | } | 576 | } while (!complete); |
577 | while(!complete); | ||
578 | break; | 577 | break; |
579 | case enumCompileType.js: | 578 | case enumCompileType.js: |
580 | results = JScodeProvider.CompileAssemblyFromSource( | 579 | results = JScodeProvider.CompileAssemblyFromSource( |
581 | parameters, Script); | 580 | parameters, Script); |
582 | break; | 581 | break; |
583 | case enumCompileType.yp: | 582 | case enumCompileType.yp: |
584 | results = YPcodeProvider.CompileAssemblyFromSource( | 583 | results = YPcodeProvider.CompileAssemblyFromSource( |
585 | parameters, Script); | 584 | parameters, Script); |
586 | break; | 585 | break; |
587 | default: | 586 | default: |
588 | throw new Exception("Compiler is not able to recongnize "+ | 587 | throw new Exception("Compiler is not able to recongnize "+ |
589 | "language type \"" + lang.ToString() + "\""); | 588 | "language type \"" + lang.ToString() + "\""); |
590 | } | 589 | } |
591 | 590 | ||
592 | // Check result | 591 | // Check result |
@@ -602,12 +601,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools | |||
602 | { | 601 | { |
603 | foreach (CompilerError CompErr in results.Errors) | 602 | foreach (CompilerError CompErr in results.Errors) |
604 | { | 603 | { |
605 | 604 | string severity = CompErr.IsWarning ? "Warning" : "Error"; | |
606 | string severity = "Error"; | ||
607 | if (CompErr.IsWarning) | ||
608 | { | ||
609 | severity = "Warning"; | ||
610 | } | ||
611 | 605 | ||
612 | KeyValuePair<int, int> lslPos; | 606 | KeyValuePair<int, int> lslPos; |
613 | 607 | ||
@@ -615,18 +609,18 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools | |||
615 | 609 | ||
616 | if (severity == "Error") | 610 | if (severity == "Error") |
617 | { | 611 | { |
618 | lslPos = FindErrorPosition(CompErr.Line, CompErr.Column); | 612 | lslPos = FindErrorPosition(CompErr.Line, CompErr.Column); |
619 | string text = CompErr.ErrorText; | 613 | string text = CompErr.ErrorText; |
620 | 614 | ||
621 | // Use LSL type names | 615 | // Use LSL type names |
622 | if (lang == enumCompileType.lsl) | 616 | if (lang == enumCompileType.lsl) |
623 | text = ReplaceTypes(CompErr.ErrorText); | 617 | text = ReplaceTypes(CompErr.ErrorText); |
624 | 618 | ||
625 | // The Second Life viewer's script editor begins | 619 | // The Second Life viewer's script editor begins |
626 | // countingn lines and columns at 0, so we subtract 1. | 620 | // countingn lines and columns at 0, so we subtract 1. |
627 | errtext += String.Format("Line ({0},{1}): {4} {2}: {3}\n", | 621 | errtext += String.Format("Line ({0},{1}): {4} {2}: {3}\n", |
628 | lslPos.Key - 1, lslPos.Value - 1, | 622 | lslPos.Key - 1, lslPos.Value - 1, |
629 | CompErr.ErrorNumber, text, severity); | 623 | CompErr.ErrorNumber, text, severity); |
630 | hadErrors = true; | 624 | hadErrors = true; |
631 | } | 625 | } |
632 | } | 626 | } |