From 6cd0a3e07c828071620ea6d2c6bd83fcade04a0d Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sat, 30 Jul 2016 04:25:32 +0100 Subject: [PATCH] fix cAgent.CrossingFlags --- OpenSim/Region/Framework/Scenes/ScenePresence.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 7c1a763137..c59238557e 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs @@ -4539,7 +4539,13 @@ namespace OpenSim.Region.Framework.Scenes if (Scene.AttachmentsModule != null) Scene.AttachmentsModule.CopyAttachments(this, cAgent); - cAgent.CrossingFlags = isCrossUpdate ? crossingFlags : (byte)0; + if(isCrossUpdate) + { + cAgent.CrossingFlags = crossingFlags; + cAgent.CrossingFlags |= 1; + } + else + cAgent.CrossingFlags = 0; if(isCrossUpdate && haveGroupInformation) {