From e5ede36f0c8974dc81d1755d16513641aff535c2 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Tue, 12 Feb 2008 07:32:32 +0000 Subject: * Physical prim cross borders and continue from where the left off on the other side now, assuming the region on the other side has physical prim enabled. --- OpenSim/Region/Environment/Scenes/Scene.cs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes/Scene.cs') diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index b797cc3..ba2a2cf 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs @@ -745,7 +745,7 @@ namespace OpenSim.Region.Environment.Scenes } catch (Exception e) { - m_log.Error("[Scene]: Failed with exception " + e.ToString()); + m_log.Error("[Scene]: Failed with exception " + e.ToString() + " On Region: " + RegionInfo.RegionName); } finally { @@ -1230,32 +1230,32 @@ namespace OpenSim.Region.Environment.Scenes int thisx = (int)RegionInfo.RegionLocX; int thisy = (int)RegionInfo.RegionLocY; ulong newRegionHandle = 0; - LLVector3 pos = grp.AbsolutePosition; + LLVector3 pos = position; - if (position.X > 255.6f) + if (position.X > 257f) { - pos.X = ((pos.X - 256) + 10); + pos.X = ((pos.X - 256)); newRegionHandle = Util.UIntsToLong((uint)((thisx + 1) * 256), (uint)(thisy * 256)); // x + 1 } - else if (position.X < 0.4f) + else if (position.X < -1f) { - pos.X = ((pos.X + 256) - 10); + pos.X = ((pos.X + 256)); newRegionHandle = Util.UIntsToLong((uint)((thisx - 1) * 256), (uint)(thisy * 256)); // x - 1 } - if (position.Y > 255.6f) + if (position.Y > 257f) { - pos.Y = ((pos.Y - 256) + 10); + pos.Y = ((pos.Y - 256)); newRegionHandle = Util.UIntsToLong((uint)(thisx * 256), (uint)((thisy + 1) * 256)); // y + 1 } - else if (position.Y < 0.4f) + else if (position.Y < -1f) { - pos.Y = ((pos.Y + 256) - 10); + pos.Y = ((pos.Y + 256)); newRegionHandle = Util.UIntsToLong((uint)(thisx * 256), (uint)((thisy - 1) * 256)); // y - 1 } @@ -1287,7 +1287,7 @@ namespace OpenSim.Region.Environment.Scenes } public void IncomingInterRegionPrimGroup(ulong regionHandle, LLUUID primID, string objXMLData) { - m_log.Warn("{[INTERREGION]: OMG! A new prim arrived from a neighbor!.. Kyill eeehht! before it corrupts my entire database! AHHH! I feel so dirty now! yuck! ack! arg!"); + m_log.Warn("{[INTERREGION]: A new prim arrived from a neighbor"); m_sceneXmlLoader.LoadGroupFromXml2String(objXMLData); } -- cgit v1.1