diff options
Diffstat (limited to 'OpenSim/Data/MySQL')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLDataStore.cs | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/OpenSim/Data/MySQL/MySQLDataStore.cs b/OpenSim/Data/MySQL/MySQLDataStore.cs index ff1b583..b0f02f0 100644 --- a/OpenSim/Data/MySQL/MySQLDataStore.cs +++ b/OpenSim/Data/MySQL/MySQLDataStore.cs | |||
@@ -1025,13 +1025,22 @@ namespace OpenSim.Data.MySQL | |||
1025 | 1025 | ||
1026 | newData.authBuyerID = authedbuyer; | 1026 | newData.authBuyerID = authedbuyer; |
1027 | newData.snapshotID = snapshotID; | 1027 | newData.snapshotID = snapshotID; |
1028 | 1028 | try | |
1029 | newData.userLocation = | 1029 | { |
1030 | new LLVector3(Convert.ToSingle(row["UserLocationX"]), Convert.ToSingle(row["UserLocationY"]), | 1030 | newData.userLocation = |
1031 | Convert.ToSingle(row["UserLocationZ"])); | 1031 | new LLVector3(Convert.ToSingle(row["UserLocationX"]), Convert.ToSingle(row["UserLocationY"]), |
1032 | newData.userLookAt = | 1032 | Convert.ToSingle(row["UserLocationZ"])); |
1033 | new LLVector3(Convert.ToSingle(row["UserLookAtX"]), Convert.ToSingle(row["UserLookAtY"]), | 1033 | newData.userLookAt = |
1034 | Convert.ToSingle(row["UserLookAtZ"])); | 1034 | new LLVector3(Convert.ToSingle(row["UserLookAtX"]), Convert.ToSingle(row["UserLookAtY"]), |
1035 | Convert.ToSingle(row["UserLookAtZ"])); | ||
1036 | } | ||
1037 | catch (InvalidCastException) | ||
1038 | { | ||
1039 | newData.userLocation = LLVector3.Zero; | ||
1040 | newData.userLookAt = LLVector3.Zero; | ||
1041 | m_log.ErrorFormat("[PARCEL]: unable to get parcel telehub settings for {1}", newData.landName); | ||
1042 | } | ||
1043 | |||
1035 | newData.parcelAccessList = new List<ParcelManager.ParcelAccessEntry>(); | 1044 | newData.parcelAccessList = new List<ParcelManager.ParcelAccessEntry>(); |
1036 | 1045 | ||
1037 | return newData; | 1046 | return newData; |