aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Data')
-rw-r--r--OpenSim/Data/SQLite/Resources/007_UserStore.sql7
-rw-r--r--OpenSim/Data/SQLite/SQLiteUserData.cs8
2 files changed, 15 insertions, 0 deletions
diff --git a/OpenSim/Data/SQLite/Resources/007_UserStore.sql b/OpenSim/Data/SQLite/Resources/007_UserStore.sql
new file mode 100644
index 0000000..8b0cd28
--- /dev/null
+++ b/OpenSim/Data/SQLite/Resources/007_UserStore.sql
@@ -0,0 +1,7 @@
1BEGIN TRANSACTION;
2
3ALTER TABLE useragents add currentLookAtX float not null default 128;
4ALTER TABLE useragents add currentLookAtY float not null default 128;
5ALTER TABLE useragents add currentLookAtZ float not null default 70;
6
7COMMIT;
diff --git a/OpenSim/Data/SQLite/SQLiteUserData.cs b/OpenSim/Data/SQLite/SQLiteUserData.cs
index ce3cf82..2c1e3c3 100644
--- a/OpenSim/Data/SQLite/SQLiteUserData.cs
+++ b/OpenSim/Data/SQLite/SQLiteUserData.cs
@@ -813,6 +813,11 @@ namespace OpenSim.Data.SQLite
813 Convert.ToSingle(row["currentPosY"]), 813 Convert.ToSingle(row["currentPosY"]),
814 Convert.ToSingle(row["currentPosZ"]) 814 Convert.ToSingle(row["currentPosZ"])
815 ); 815 );
816 ua.LookAt = new Vector3(
817 Convert.ToSingle(row["currentLookAtX"]),
818 Convert.ToSingle(row["currentLookAtY"]),
819 Convert.ToSingle(row["currentLookAtZ"])
820 );
816 return ua; 821 return ua;
817 } 822 }
818 823
@@ -838,6 +843,9 @@ namespace OpenSim.Data.SQLite
838 row["currentPosX"] = ua.Position.X; 843 row["currentPosX"] = ua.Position.X;
839 row["currentPosY"] = ua.Position.Y; 844 row["currentPosY"] = ua.Position.Y;
840 row["currentPosZ"] = ua.Position.Z; 845 row["currentPosZ"] = ua.Position.Z;
846 row["currentLookAtX"] = ua.LookAt.X;
847 row["currentLookAtY"] = ua.LookAt.Y;
848 row["currentLookAtZ"] = ua.LookAt.Z;
841 } 849 }
842 850
843 /*********************************************************************** 851 /***********************************************************************