mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
don't freeze with a sitted avatar in a border without other sim. Still messy :(
This commit is contained in:
@@ -3125,7 +3125,7 @@ Console.WriteLine("ODEPrim JointCreateFixed !!!");
|
||||
d.BodySetPosition(Body, _position.X, _position.Y, _position.Z);
|
||||
d.BodySetLinearVel(Body, 0, 0, 0);
|
||||
|
||||
if (Interlocked.Exchange(ref m_crossingfailures, 0) == 0)
|
||||
if (Interlocked.Exchange(ref m_crossingfailures, m_crossingfailures) == 0)
|
||||
{ // tell base code only once
|
||||
Interlocked.Increment(ref m_crossingfailures);
|
||||
base.RequestPhysicsterseUpdate();
|
||||
@@ -3133,7 +3133,7 @@ Console.WriteLine("ODEPrim JointCreateFixed !!!");
|
||||
return;
|
||||
}
|
||||
|
||||
if (Interlocked.Exchange(ref m_crossingfailures, 0) > 1)
|
||||
if (Interlocked.Exchange(ref m_crossingfailures, 0) != 0)
|
||||
{
|
||||
// main simulator had a crossing failure
|
||||
// park it inside region
|
||||
|
||||
Reference in New Issue
Block a user