Finally make attachments stay put. Randomize local ID generation to

prevent adjacent sims from using identical Local IDs for the attachment
Thanks to Mana Janus (Hippo Viewer) for providing the crucial bit of
information, namely that, due to a bug in the viewer, adjacent sims can't
use the same local ids.
This commit is contained in:
Melanie Thielker
2008-11-29 13:17:21 +00:00
parent a00d346aab
commit 1b3a3ffc77
5 changed files with 13 additions and 13 deletions

View File

@@ -556,7 +556,12 @@ namespace OpenSim.Region.Environment.Modules.World.Land
}
lock (m_landList)
{
return m_landList[m_landIDList[x, y]];
// Corner case. If an autoreturn happens during sim startup
// we will come here with the list uninitialized
//
if (m_landList.ContainsKey(m_landIDList[x, y]))
return m_landList[m_landIDList[x, y]];
return null;
}
}