aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/SQLite/SQLiteSimulationData.cs
diff options
context:
space:
mode:
authorteravus2012-11-15 10:05:16 -0500
committerteravus2012-11-15 10:05:16 -0500
commite9153e1d1aae50024d8cd05fe14a9bce34343a0e (patch)
treebc111d34f95a26b99c7e34d9e495dc14d1802cc3 /OpenSim/Data/SQLite/SQLiteSimulationData.cs
parentMerge master into teravuswork (diff)
downloadopensim-SC_OLD-e9153e1d1aae50024d8cd05fe14a9bce34343a0e.zip
opensim-SC_OLD-e9153e1d1aae50024d8cd05fe14a9bce34343a0e.tar.gz
opensim-SC_OLD-e9153e1d1aae50024d8cd05fe14a9bce34343a0e.tar.bz2
opensim-SC_OLD-e9153e1d1aae50024d8cd05fe14a9bce34343a0e.tar.xz
Revert "Merge master into teravuswork", it should have been avination, not master.
This reverts commit dfac269032300872c4d0dc507f4f9062d102b0f4, reversing changes made to 619c39e5144f15aca129d6d999bcc5c34133ee64.
Diffstat (limited to 'OpenSim/Data/SQLite/SQLiteSimulationData.cs')
-rw-r--r--OpenSim/Data/SQLite/SQLiteSimulationData.cs25
1 files changed, 5 insertions, 20 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteSimulationData.cs b/OpenSim/Data/SQLite/SQLiteSimulationData.cs
index 42cd59d..431709f 100644
--- a/OpenSim/Data/SQLite/SQLiteSimulationData.cs
+++ b/OpenSim/Data/SQLite/SQLiteSimulationData.cs
@@ -1366,13 +1366,6 @@ namespace OpenSim.Data.SQLite
1366 createCol(land, "UserLookAtZ", typeof(Double)); 1366 createCol(land, "UserLookAtZ", typeof(Double));
1367 createCol(land, "AuthbuyerID", typeof(String)); 1367 createCol(land, "AuthbuyerID", typeof(String));
1368 createCol(land, "OtherCleanTime", typeof(Int32)); 1368 createCol(land, "OtherCleanTime", typeof(Int32));
1369 createCol(land, "Dwell", typeof(Int32));
1370 createCol(land, "MediaType", typeof(String));
1371 createCol(land, "MediaDescription", typeof(String));
1372 createCol(land, "MediaSize", typeof(String));
1373 createCol(land, "MediaLoop", typeof(Boolean));
1374 createCol(land, "ObscureMedia", typeof(Boolean));
1375 createCol(land, "ObscureMusic", typeof(Boolean));
1376 1369
1377 land.PrimaryKey = new DataColumn[] { land.Columns["UUID"] }; 1370 land.PrimaryKey = new DataColumn[] { land.Columns["UUID"] };
1378 1371
@@ -1788,16 +1781,9 @@ namespace OpenSim.Data.SQLite
1788 newData.PassHours = Convert.ToSingle(row["PassHours"]); 1781 newData.PassHours = Convert.ToSingle(row["PassHours"]);
1789 newData.PassPrice = Convert.ToInt32(row["PassPrice"]); 1782 newData.PassPrice = Convert.ToInt32(row["PassPrice"]);
1790 newData.SnapshotID = (UUID)(String)row["SnapshotUUID"]; 1783 newData.SnapshotID = (UUID)(String)row["SnapshotUUID"];
1791 newData.Dwell = Convert.ToInt32(row["Dwell"]);
1792 newData.MediaType = (String)row["MediaType"];
1793 newData.MediaDescription = (String)row["MediaDescription"];
1794 newData.MediaWidth = Convert.ToInt32((((string)row["MediaSize"]).Split(','))[0]);
1795 newData.MediaHeight = Convert.ToInt32((((string)row["MediaSize"]).Split(','))[1]);
1796 newData.MediaLoop = Convert.ToBoolean(row["MediaLoop"]);
1797 newData.ObscureMedia = Convert.ToBoolean(row["ObscureMedia"]);
1798 newData.ObscureMusic = Convert.ToBoolean(row["ObscureMusic"]);
1799 try 1784 try
1800 { 1785 {
1786
1801 newData.UserLocation = 1787 newData.UserLocation =
1802 new Vector3(Convert.ToSingle(row["UserLocationX"]), Convert.ToSingle(row["UserLocationY"]), 1788 new Vector3(Convert.ToSingle(row["UserLocationX"]), Convert.ToSingle(row["UserLocationY"]),
1803 Convert.ToSingle(row["UserLocationZ"])); 1789 Convert.ToSingle(row["UserLocationZ"]));
@@ -2209,13 +2195,12 @@ namespace OpenSim.Data.SQLite
2209 row["UserLookAtZ"] = land.UserLookAt.Z; 2195 row["UserLookAtZ"] = land.UserLookAt.Z;
2210 row["AuthbuyerID"] = land.AuthBuyerID.ToString(); 2196 row["AuthbuyerID"] = land.AuthBuyerID.ToString();
2211 row["OtherCleanTime"] = land.OtherCleanTime; 2197 row["OtherCleanTime"] = land.OtherCleanTime;
2212 row["Dwell"] = land.Dwell;
2213 row["MediaType"] = land.MediaType; 2198 row["MediaType"] = land.MediaType;
2214 row["MediaDescription"] = land.MediaDescription; 2199 row["MediaDescription"] = land.MediaDescription;
2215 row["MediaSize"] = String.Format("{0},{1}", land.MediaWidth, land.MediaHeight); 2200 row["MediaSize"] = land.MediaWidth.ToString() + "," + land.MediaHeight.ToString();
2216 row["MediaLoop"] = land.MediaLoop; 2201 row["MediaLoop"] = land.MediaLoop.ToString();
2217 row["ObscureMusic"] = land.ObscureMusic; 2202 row["ObscureMusic"] = land.ObscureMusic.ToString();
2218 row["ObscureMedia"] = land.ObscureMedia; 2203 row["ObscureMedia"] = land.ObscureMedia.ToString();
2219 } 2204 }
2220 2205
2221 /// <summary> 2206 /// <summary>