aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
diff options
context:
space:
mode:
authorMelanie Thielker2008-09-02 03:43:18 +0000
committerMelanie Thielker2008-09-02 03:43:18 +0000
commit61978649ec1642f1c0bf0a3aa6492cebefab85d3 (patch)
tree9310263acfcce74e72775baa97e094ed97d96195 /OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
parentY top shear accuracy improvements in circular path prim meshes (diff)
downloadopensim-SC-61978649ec1642f1c0bf0a3aa6492cebefab85d3.zip
opensim-SC-61978649ec1642f1c0bf0a3aa6492cebefab85d3.tar.gz
opensim-SC-61978649ec1642f1c0bf0a3aa6492cebefab85d3.tar.bz2
opensim-SC-61978649ec1642f1c0bf0a3aa6492cebefab85d3.tar.xz
Change some chat output functions so that text is truncated at
1000 chars to avoid the exception thrown by libomv at 1100 chars. Change string->int conversion so it copes with non-numeric chars after the number and no longer uses a float to parse the value.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/XEngine/XEngine.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/XEngine/XEngine.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
index a33554c..f9f8883 100644
--- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
+++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
@@ -432,8 +432,8 @@ namespace OpenSim.Region.ScriptEngine.XEngine
432 { 432 {
433 // DISPLAY ERROR INWORLD 433 // DISPLAY ERROR INWORLD
434 string text = "Error compiling script:\r\n" + e.Message.ToString(); 434 string text = "Error compiling script:\r\n" + e.Message.ToString();
435 if (text.Length > 1400) 435 if (text.Length > 1000)
436 text = text.Substring(0, 1400); 436 text = text.Substring(0, 1000);
437 World.SimChat(Helpers.StringToField(text), 437 World.SimChat(Helpers.StringToField(text),
438 ChatTypeEnum.DebugChannel, 2147483647, 438 ChatTypeEnum.DebugChannel, 2147483647,
439 part.AbsolutePosition, 439 part.AbsolutePosition,