Last position will be stored in the DB on logout, and the avatar can continue from the same position in the next login (only with MySQL at the moment)

This commit is contained in:
Johan Berntsson
2008-03-18 01:38:07 +00:00
parent bbddc0dbe7
commit 040a887b9c
4 changed files with 115 additions and 11 deletions

View File

@@ -585,7 +585,18 @@ namespace OpenSim.Framework.Data.MySQL
/// <param name="agent">The agent to create</param>
public void AddNewUserAgent(UserAgentData agent)
{
// Do nothing.
try
{
lock (database)
{
database.insertAgentRow(agent);
}
}
catch (Exception e)
{
database.Reconnect();
m_log.Error(e.ToString());
}
}
/// <summary>