aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data
diff options
context:
space:
mode:
authorMelanie2012-01-23 13:51:20 +0100
committerMelanie2012-01-23 13:51:20 +0100
commit22ae9331bbe37c25a5099a05eb32ace7537ea46c (patch)
treea0a43577aca9f92cedd39c36f673b3574d78e59c /OpenSim/Data
parentFix llLookAt the right way (diff)
parentMerge branch 'master' into careminster (diff)
downloadopensim-SC_OLD-22ae9331bbe37c25a5099a05eb32ace7537ea46c.zip
opensim-SC_OLD-22ae9331bbe37c25a5099a05eb32ace7537ea46c.tar.gz
opensim-SC_OLD-22ae9331bbe37c25a5099a05eb32ace7537ea46c.tar.bz2
opensim-SC_OLD-22ae9331bbe37c25a5099a05eb32ace7537ea46c.tar.xz
Merge branch 'master' of ssh://3dhosting.de/var/git/careminster
Diffstat (limited to 'OpenSim/Data')
-rw-r--r--OpenSim/Data/MySQL/MySQLSimulationData.cs39
1 files changed, 35 insertions, 4 deletions
diff --git a/OpenSim/Data/MySQL/MySQLSimulationData.cs b/OpenSim/Data/MySQL/MySQLSimulationData.cs
index afd42d7..bddb971 100644
--- a/OpenSim/Data/MySQL/MySQLSimulationData.cs
+++ b/OpenSim/Data/MySQL/MySQLSimulationData.cs
@@ -1011,7 +1011,11 @@ namespace OpenSim.Data.MySQL
1011 "use_estate_sun, fixed_sun, sun_position, " + 1011 "use_estate_sun, fixed_sun, sun_position, " +
1012 "covenant, Sandbox, sunvectorx, sunvectory, " + 1012 "covenant, Sandbox, sunvectorx, sunvectory, " +
1013 "sunvectorz, loaded_creation_datetime, " + 1013 "sunvectorz, loaded_creation_datetime, " +
1014 "loaded_creation_id, map_tile_ID, block_search, casino) values (?RegionUUID, ?BlockTerraform, " + 1014 "loaded_creation_id, map_tile_ID, block_search, casino, " +
1015 "TelehubEnabled, TelehubObject, TelehubName, " +
1016 "TelehubPosX, TelehubPosY, TelehubPosZ, " +
1017 "TelehubRotX, TelehubRotY, TelehubRotZ, TelehubRotW) " +
1018 "values (?RegionUUID, ?BlockTerraform, " +
1015 "?BlockFly, ?AllowDamage, ?RestrictPushing, " + 1019 "?BlockFly, ?AllowDamage, ?RestrictPushing, " +
1016 "?AllowLandResell, ?AllowLandJoinDivide, " + 1020 "?AllowLandResell, ?AllowLandJoinDivide, " +
1017 "?BlockShowInSearch, ?AgentLimit, ?ObjectBonus, " + 1021 "?BlockShowInSearch, ?AgentLimit, ?ObjectBonus, " +
@@ -1026,7 +1030,10 @@ namespace OpenSim.Data.MySQL
1026 "?SunPosition, ?Covenant, ?Sandbox, " + 1030 "?SunPosition, ?Covenant, ?Sandbox, " +
1027 "?SunVectorX, ?SunVectorY, ?SunVectorZ, " + 1031 "?SunVectorX, ?SunVectorY, ?SunVectorZ, " +
1028 "?LoadedCreationDateTime, ?LoadedCreationID, " + 1032 "?LoadedCreationDateTime, ?LoadedCreationID, " +
1029 "?TerrainImageID, ?block_search, ?casino)"; 1033 "?TerrainImageID, ?block_search, ?casino, " +
1034 "?TelehubEnabled, ?TelehubObject, ?TelehubName, " +
1035 "?TelehubPosX, ?TelehubPosY, ?TelehubPosZ, " +
1036 "?TelehubRotX, ?TelehubRotY, ?TelehubRotZ, ?TelehubRotW )";
1030 1037
1031 FillRegionSettingsCommand(cmd, rs); 1038 FillRegionSettingsCommand(cmd, rs);
1032 1039
@@ -1314,6 +1321,20 @@ namespace OpenSim.Data.MySQL
1314 newSettings.LoadedCreationID = (String) row["loaded_creation_id"]; 1321 newSettings.LoadedCreationID = (String) row["loaded_creation_id"];
1315 1322
1316 newSettings.TerrainImageID = DBGuid.FromDB(row["map_tile_ID"]); 1323 newSettings.TerrainImageID = DBGuid.FromDB(row["map_tile_ID"]);
1324 newSettings.HasTelehub = Convert.ToBoolean(row["TelehubEnabled"]);
1325 newSettings.TelehubObject = DBGuid.FromDB(row["TelehubObject"]);
1326 newSettings.TelehubName = (string) row["TelehubName"];
1327 newSettings.TelehubPos = new Vector3 (
1328 Convert.ToSingle(row["TelehubPosX"]),
1329 Convert.ToSingle(row["TelehubPosY"]),
1330 Convert.ToSingle(row["TelehubPosZ"])
1331 );
1332 newSettings.TelehubRot = new Quaternion (
1333 Convert.ToSingle(row["TelehubRotX"]),
1334 Convert.ToSingle(row["TelehubRotY"]),
1335 Convert.ToSingle(row["TelehubRotZ"]),
1336 Convert.ToSingle(row["TelehubRotW"])
1337 );
1317 1338
1318 newSettings.GodBlockSearch = Convert.ToBoolean(row["block_search"]); 1339 newSettings.GodBlockSearch = Convert.ToBoolean(row["block_search"]);
1319 newSettings.Casino = Convert.ToBoolean(row["casino"]); 1340 newSettings.Casino = Convert.ToBoolean(row["casino"]);
@@ -1654,6 +1675,16 @@ namespace OpenSim.Data.MySQL
1654 cmd.Parameters.AddWithValue("block_search", settings.GodBlockSearch); 1675 cmd.Parameters.AddWithValue("block_search", settings.GodBlockSearch);
1655 cmd.Parameters.AddWithValue("casino", settings.Casino); 1676 cmd.Parameters.AddWithValue("casino", settings.Casino);
1656 1677
1678 cmd.Parameters.AddWithValue("TelehubEnabled", settings.HasTelehub);
1679 cmd.Parameters.AddWithValue("TelehubObject", settings.TelehubObject);
1680 cmd.Parameters.AddWithValue("TelehubName", settings.TelehubName);
1681 cmd.Parameters.AddWithValue("TelehubPosX", settings.TelehubPos.X);
1682 cmd.Parameters.AddWithValue("TelehubPosY", settings.TelehubPos.Y);
1683 cmd.Parameters.AddWithValue("TelehubPosZ", settings.TelehubPos.Z);
1684 cmd.Parameters.AddWithValue("TelehubRotX", settings.TelehubRot.X);
1685 cmd.Parameters.AddWithValue("TelehubRotY", settings.TelehubRot.Y);
1686 cmd.Parameters.AddWithValue("TelehubRotZ", settings.TelehubRot.Z);
1687 cmd.Parameters.AddWithValue("TelehubRotW", settings.TelehubRot.W);
1657 } 1688 }
1658 1689
1659 /// <summary> 1690 /// <summary>
@@ -1906,11 +1937,11 @@ namespace OpenSim.Data.MySQL
1906 1937
1907 cmd.Parameters.Clear(); 1938 cmd.Parameters.Clear();
1908 1939
1909 cmd.CommandText = "insert into spawn_points (RegionID, PointX, PointY, PointZ) values ( ?EstateID, ?PointX, ?PointY,?PointZ)"; 1940 cmd.CommandText = "insert into spawn_points (RegionID, PointX, PointY, PointZ) values ( ?RegionID, ?PointX, ?PointY,?PointZ)";
1910 1941
1911 foreach (Vector3 p in rs.SpawnPoints()) 1942 foreach (Vector3 p in rs.SpawnPoints())
1912 { 1943 {
1913 cmd.Parameters.AddWithValue("?EstateID", rs.RegionUUID.ToString()); 1944 cmd.Parameters.AddWithValue("?RegionID", rs.RegionUUID.ToString());
1914 cmd.Parameters.AddWithValue("?PointX", p.X); 1945 cmd.Parameters.AddWithValue("?PointX", p.X);
1915 cmd.Parameters.AddWithValue("?PointY", p.Y); 1946 cmd.Parameters.AddWithValue("?PointY", p.Y);
1916 cmd.Parameters.AddWithValue("?PointZ", p.Z); 1947 cmd.Parameters.AddWithValue("?PointZ", p.Z);