aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/SQLite/SQLiteRegionData.cs
diff options
context:
space:
mode:
authorSean Dague2008-11-18 12:48:36 +0000
committerSean Dague2008-11-18 12:48:36 +0000
commit5517ea3dfd9201217a829eadc38d20030bd65117 (patch)
treeb6489909b3abba8fb76f20d070851ae7a0299730 /OpenSim/Data/SQLite/SQLiteRegionData.cs
parentExtended Agent Tests (diff)
downloadopensim-SC_OLD-5517ea3dfd9201217a829eadc38d20030bd65117.zip
opensim-SC_OLD-5517ea3dfd9201217a829eadc38d20030bd65117.tar.gz
opensim-SC_OLD-5517ea3dfd9201217a829eadc38d20030bd65117.tar.bz2
opensim-SC_OLD-5517ea3dfd9201217a829eadc38d20030bd65117.tar.xz
Fixed MySQL and SQLite so they will save the
variable sun vector, adding 3 new fields on both. From: Arthur Rodrigo S Valadares <arthursv@linux.vnet.ibm.com>
Diffstat (limited to 'OpenSim/Data/SQLite/SQLiteRegionData.cs')
-rw-r--r--OpenSim/Data/SQLite/SQLiteRegionData.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteRegionData.cs b/OpenSim/Data/SQLite/SQLiteRegionData.cs
index 9d6d500..4ce343a 100644
--- a/OpenSim/Data/SQLite/SQLiteRegionData.cs
+++ b/OpenSim/Data/SQLite/SQLiteRegionData.cs
@@ -1064,6 +1064,9 @@ namespace OpenSim.Data.SQLite
1064 createCol(regionsettings, "terrain_lower_limit", typeof (Double)); 1064 createCol(regionsettings, "terrain_lower_limit", typeof (Double));
1065 createCol(regionsettings, "use_estate_sun", typeof (Int32)); 1065 createCol(regionsettings, "use_estate_sun", typeof (Int32));
1066 createCol(regionsettings, "sandbox", typeof (Int32)); 1066 createCol(regionsettings, "sandbox", typeof (Int32));
1067 createCol(regionsettings, "sunvectorx",typeof (Double));
1068 createCol(regionsettings, "sunvectory",typeof (Double));
1069 createCol(regionsettings, "sunvectorz",typeof (Double));
1067 createCol(regionsettings, "fixed_sun", typeof (Int32)); 1070 createCol(regionsettings, "fixed_sun", typeof (Int32));
1068 createCol(regionsettings, "sun_position", typeof (Double)); 1071 createCol(regionsettings, "sun_position", typeof (Double));
1069 createCol(regionsettings, "covenant", typeof(String)); 1072 createCol(regionsettings, "covenant", typeof(String));
@@ -1373,6 +1376,11 @@ namespace OpenSim.Data.SQLite
1373 newSettings.TerrainLowerLimit = Convert.ToDouble(row["terrain_lower_limit"]); 1376 newSettings.TerrainLowerLimit = Convert.ToDouble(row["terrain_lower_limit"]);
1374 newSettings.UseEstateSun = Convert.ToBoolean(row["use_estate_sun"]); 1377 newSettings.UseEstateSun = Convert.ToBoolean(row["use_estate_sun"]);
1375 newSettings.Sandbox = Convert.ToBoolean(row["sandbox"]); 1378 newSettings.Sandbox = Convert.ToBoolean(row["sandbox"]);
1379 newSettings.SunVector = new Vector3 (
1380 Convert.ToSingle(row["sunvectorx"]),
1381 Convert.ToSingle(row["sunvectory"]),
1382 Convert.ToSingle(row["sunvectorz"])
1383 );
1376 newSettings.FixedSun = Convert.ToBoolean(row["fixed_sun"]); 1384 newSettings.FixedSun = Convert.ToBoolean(row["fixed_sun"]);
1377 newSettings.SunPosition = Convert.ToDouble(row["sun_position"]); 1385 newSettings.SunPosition = Convert.ToDouble(row["sun_position"]);
1378 newSettings.Covenant = new UUID((String) row["covenant"]); 1386 newSettings.Covenant = new UUID((String) row["covenant"]);
@@ -1681,6 +1689,9 @@ namespace OpenSim.Data.SQLite
1681 row["terrain_lower_limit"] = settings.TerrainLowerLimit; 1689 row["terrain_lower_limit"] = settings.TerrainLowerLimit;
1682 row["use_estate_sun"] = settings.UseEstateSun; 1690 row["use_estate_sun"] = settings.UseEstateSun;
1683 row["sandbox"] = settings.Sandbox; 1691 row["sandbox"] = settings.Sandbox;
1692 row["sunvectorx"] = settings.SunVector.X;
1693 row["sunvectory"] = settings.SunVector.Y;
1694 row["sunvectorz"] = settings.SunVector.Z;
1684 row["fixed_sun"] = settings.FixedSun; 1695 row["fixed_sun"] = settings.FixedSun;
1685 row["sun_position"] = settings.SunPosition; 1696 row["sun_position"] = settings.SunPosition;
1686 row["covenant"] = settings.Covenant.ToString(); 1697 row["covenant"] = settings.Covenant.ToString();