diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs index d441aa4..2930303 100644 --- a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs +++ b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs | |||
@@ -196,9 +196,10 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess | |||
196 | 196 | ||
197 | if (invType == (sbyte)InventoryType.Landmark && presence != null) | 197 | if (invType == (sbyte)InventoryType.Landmark && presence != null) |
198 | { | 198 | { |
199 | string suffix = string.Empty; | 199 | string suffix = string.Empty, prefix = string.Empty; |
200 | string strdata = GenerateLandmark(presence, out suffix); | 200 | string strdata = GenerateLandmark(presence, out prefix, out suffix); |
201 | data = Encoding.ASCII.GetBytes(strdata); | 201 | data = Encoding.ASCII.GetBytes(strdata); |
202 | name = prefix + name; | ||
202 | description += suffix; | 203 | description += suffix; |
203 | } | 204 | } |
204 | 205 | ||
@@ -226,8 +227,9 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess | |||
226 | } | 227 | } |
227 | } | 228 | } |
228 | 229 | ||
229 | protected virtual string GenerateLandmark(ScenePresence presence, out string suffix) | 230 | protected virtual string GenerateLandmark(ScenePresence presence, out string prefix, out string suffix) |
230 | { | 231 | { |
232 | prefix = string.Empty; | ||
231 | suffix = string.Empty; | 233 | suffix = string.Empty; |
232 | Vector3 pos = presence.AbsolutePosition; | 234 | Vector3 pos = presence.AbsolutePosition; |
233 | return String.Format("Landmark version 2\nregion_id {0}\nlocal_pos {1} {2} {3}\nregion_handle {4}\n", | 235 | return String.Format("Landmark version 2\nregion_id {0}\nlocal_pos {1} {2} {3}\nregion_handle {4}\n", |