A stab at making llEjectFromLand work in all cases
parent
6dc4a6dfb1
commit
0ed4f24b34
|
@ -4938,9 +4938,16 @@ Environment.Exit(1);
|
||||||
return nearestPoint.Value;
|
return nearestPoint.Value;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Ultimate backup if we have no idea where they are
|
ILandObject dest = LandChannel.GetLandObject(avatar.lastKnownAllowedPosition.X, avatar.lastKnownAllowedPosition.Y);
|
||||||
Debug.WriteLine("Have no idea where they are, sending them to: " + avatar.lastKnownAllowedPosition.ToString());
|
if (dest != excludeParcel)
|
||||||
return avatar.lastKnownAllowedPosition;
|
{
|
||||||
|
// Ultimate backup if we have no idea where they are and
|
||||||
|
// the last allowed position was in another parcel
|
||||||
|
Debug.WriteLine("Have no idea where they are, sending them to: " + avatar.lastKnownAllowedPosition.ToString());
|
||||||
|
return avatar.lastKnownAllowedPosition;
|
||||||
|
}
|
||||||
|
|
||||||
|
// else fall through to region edge
|
||||||
}
|
}
|
||||||
|
|
||||||
//Go to the edge, this happens in teleporting to a region with no available parcels
|
//Go to the edge, this happens in teleporting to a region with no available parcels
|
||||||
|
|
Loading…
Reference in New Issue