aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Util.cs
diff options
context:
space:
mode:
authorRobert Adams2014-01-11 08:52:23 -0800
committerRobert Adams2014-01-11 08:52:23 -0800
commit1cf17a3cf7322b79d44ef80b9129c975f0cf4f6f (patch)
tree125392101f83c8e7cb239848ae7a6cc12595b1a2 /OpenSim/Framework/Util.cs
parentMerge branch 'master' into varregion (diff)
parentFix crash in BulletSim which sometimes happens making a linkset physical (diff)
downloadopensim-SC-1cf17a3cf7322b79d44ef80b9129c975f0cf4f6f.zip
opensim-SC-1cf17a3cf7322b79d44ef80b9129c975f0cf4f6f.tar.gz
opensim-SC-1cf17a3cf7322b79d44ef80b9129c975f0cf4f6f.tar.bz2
opensim-SC-1cf17a3cf7322b79d44ef80b9129c975f0cf4f6f.tar.xz
Merge branch 'master' into varregion
Conflicts: OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs OpenSim/Region/Framework/Scenes/SceneBase.cs OpenSim/Services/Interfaces/IGridService.cs OpenSim/Services/LLLoginService/LLLoginResponse.cs (conflicts were debug statements that are commented out in master branch)
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/Util.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs
index b84673b..cebba46 100644
--- a/OpenSim/Framework/Util.cs
+++ b/OpenSim/Framework/Util.cs
@@ -2072,8 +2072,10 @@ namespace OpenSim.Framework
2072 #region Xml Serialization Utilities 2072 #region Xml Serialization Utilities
2073 public static bool ReadBoolean(XmlTextReader reader) 2073 public static bool ReadBoolean(XmlTextReader reader)
2074 { 2074 {
2075 // AuroraSim uses "int" for some fields that are boolean in OpenSim, e.g. "PassCollisions". Don't fail because of this.
2075 reader.ReadStartElement(); 2076 reader.ReadStartElement();
2076 bool result = Boolean.Parse(reader.ReadContentAsString().ToLower()); 2077 string val = reader.ReadContentAsString().ToLower();
2078 bool result = val.Equals("true") || val.Equals("1");
2077 reader.ReadEndElement(); 2079 reader.ReadEndElement();
2078 2080
2079 return result; 2081 return result;