Adding currentLookAt to useragents table in SQLite. This complements the

MySQL change from http://opensimulator.org/mantis/view.php?id=2073
0.6.0-stable
Homer Horwitz 2008-09-17 19:21:28 +00:00
parent e94d6f12ee
commit 0ad5d8c0e7
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,7 @@
BEGIN TRANSACTION;
ALTER TABLE useragents add currentLookAtX float not null default 128;
ALTER TABLE useragents add currentLookAtY float not null default 128;
ALTER TABLE useragents add currentLookAtZ float not null default 70;
COMMIT;

View File

@ -813,6 +813,11 @@ namespace OpenSim.Data.SQLite
Convert.ToSingle(row["currentPosY"]),
Convert.ToSingle(row["currentPosZ"])
);
ua.LookAt = new Vector3(
Convert.ToSingle(row["currentLookAtX"]),
Convert.ToSingle(row["currentLookAtY"]),
Convert.ToSingle(row["currentLookAtZ"])
);
return ua;
}
@ -838,6 +843,9 @@ namespace OpenSim.Data.SQLite
row["currentPosX"] = ua.Position.X;
row["currentPosY"] = ua.Position.Y;
row["currentPosZ"] = ua.Position.Z;
row["currentLookAtX"] = ua.LookAt.X;
row["currentLookAtY"] = ua.LookAt.Y;
row["currentLookAtZ"] = ua.LookAt.Z;
}
/***********************************************************************