aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorTeravus Ovares2008-09-20 17:17:41 +0000
committerTeravus Ovares2008-09-20 17:17:41 +0000
commit42f04233a4a8c684c8266800cb2b661ea29973a9 (patch)
treedf798c8129e6af862bd39f09ae6a8faa66cebe38
parentXEngine: Fix llGetListEntryType to return the correct type for the LSL types. (diff)
downloadopensim-SC_OLD-42f04233a4a8c684c8266800cb2b661ea29973a9.zip
opensim-SC_OLD-42f04233a4a8c684c8266800cb2b661ea29973a9.tar.gz
opensim-SC_OLD-42f04233a4a8c684c8266800cb2b661ea29973a9.tar.bz2
opensim-SC_OLD-42f04233a4a8c684c8266800cb2b661ea29973a9.tar.xz
* Fix build error, (maybe)
* Might break something.. hard to say.. 0.o
-rw-r--r--OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs2
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptBase.cs7
2 files changed, 5 insertions, 4 deletions
diff --git a/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs b/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs
index dfa751c..b32985a 100644
--- a/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs
+++ b/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs
@@ -552,7 +552,7 @@ namespace OpenSim.Region.Environment.Modules.InterGrid
552 // REPLACEMENT 552 // REPLACEMENT
553 responseMap["region_seed_capability"] = LLSD.FromString(regionCapsHttpProtocol + httpaddr + ":" + reg.HttpPort + "/CAPS/" + userCap.CapsObjectPath + "0000/"); 553 responseMap["region_seed_capability"] = LLSD.FromString(regionCapsHttpProtocol + httpaddr + ":" + reg.HttpPort + "/CAPS/" + userCap.CapsObjectPath + "0000/");
554 554
555 555 responseMap["rez_avatar"] = LLSD.FromString(rezHttpProtocol + httpaddr + ":" + urlport + rezAvatarPath);
556 responseMap["rez_avatar/rez"] = LLSD.FromString(rezHttpProtocol + httpaddr + ":" + urlport + rezAvatarPath); 556 responseMap["rez_avatar/rez"] = LLSD.FromString(rezHttpProtocol + httpaddr + ":" + urlport + rezAvatarPath);
557 responseMap["rez_avatar/derez"] = LLSD.FromString(rezHttpProtocol + httpaddr + ":" + urlport + derezAvatarPath); 557 responseMap["rez_avatar/derez"] = LLSD.FromString(rezHttpProtocol + httpaddr + ":" + urlport + derezAvatarPath);
558 558
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptBase.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptBase.cs
index b32fce6..25f654e 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptBase.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptBase.cs
@@ -138,7 +138,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
138 c.Data = data; 138 c.Data = data;
139 vars[field.Name] = c; 139 vars[field.Name] = c;
140 } 140 }
141 else if(field.FieldType == typeof(LSL_Types.LSLInteger) || 141 else if (field.FieldType == typeof(LSL_Types.LSLInteger) ||
142 field.FieldType == typeof(LSL_Types.LSLString) || 142 field.FieldType == typeof(LSL_Types.LSLString) ||
143 field.FieldType == typeof(LSL_Types.LSLFloat) || 143 field.FieldType == typeof(LSL_Types.LSLFloat) ||
144 field.FieldType == typeof(Int32) || 144 field.FieldType == typeof(Int32) ||
@@ -146,7 +146,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
146 field.FieldType == typeof(Single) || 146 field.FieldType == typeof(Single) ||
147 field.FieldType == typeof(String) || 147 field.FieldType == typeof(String) ||
148 field.FieldType == typeof(Byte) || 148 field.FieldType == typeof(Byte) ||
149 field.FieldType == typeof(Short)) 149 field.FieldType == typeof(short))
150 { 150 {
151 vars[field.Name] = field.GetValue(this); 151 vars[field.Name] = field.GetValue(this);
152 } 152 }
@@ -159,6 +159,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
159 { 159 {
160 foreach (KeyValuePair<string, object> var in vars) 160 foreach (KeyValuePair<string, object> var in vars)
161 { 161 {
162 FieldInfo field = (FieldInfo)var.Value;
162 if (m_Fields.ContainsKey(var.Key)) 163 if (m_Fields.ContainsKey(var.Key))
163 { 164 {
164 if (m_Fields[var.Key].FieldType == typeof(LSL_Types.list)) 165 if (m_Fields[var.Key].FieldType == typeof(LSL_Types.list))
@@ -177,7 +178,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
177 field.FieldType == typeof(Single) || 178 field.FieldType == typeof(Single) ||
178 field.FieldType == typeof(String) || 179 field.FieldType == typeof(String) ||
179 field.FieldType == typeof(Byte) || 180 field.FieldType == typeof(Byte) ||
180 field.FieldType == typeof(Short)) 181 field.FieldType == typeof(short))
181 { 182 {
182 m_Fields[var.Key].SetValue(this, var.Value); 183 m_Fields[var.Key].SetValue(this, var.Value);
183 } 184 }