* Commit some sit code that's commented out for now.

This commit is contained in:
Teravus Ovares (Dan Olivares)
2009-12-08 11:28:13 -05:00
parent dd5696e8bd
commit 2f8b9cbf2b
2 changed files with 223 additions and 14 deletions

View File

@@ -106,13 +106,20 @@ namespace OpenSim.Region.Physics.OdePlugin
{
if (m_PendingRequests.Count > 0)
{
ODERayCastRequest[] reqs = m_PendingRequests.ToArray();
for (int i = 0; i < reqs.Length; i++)
{
if (reqs[i].callbackMethod != null) // quick optimization here, don't raycast
RayCast(reqs[i]); // if there isn't anyone to send results
}
/*
foreach (ODERayCastRequest req in m_PendingRequests)
{
if (req.callbackMethod != null) // quick optimization here, don't raycast
RayCast(req); // if there isn't anyone to send results to
}
*/
m_PendingRequests.Clear();
}
}