mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
new viewers may lose our legacy HG landmarks name and descritions hacks
This commit is contained in:
@@ -483,7 +483,27 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
if (item.Owner != remoteClient.AgentId)
|
||||
return;
|
||||
|
||||
bool sendUpdate = false;
|
||||
|
||||
item.Flags = (item.Flags & ~(uint)255) | (itemUpd.Flags & (uint)255);
|
||||
if(item.AssetType == (int)AssetType.Landmark)
|
||||
{
|
||||
if(item.Name.StartsWith("HG ") && !itemUpd.Name.StartsWith("HG "))
|
||||
{
|
||||
itemUpd.Name = "HG " + itemUpd.Name;
|
||||
sendUpdate = true;
|
||||
}
|
||||
|
||||
int origIndx = item.Description.LastIndexOf("@ htt");
|
||||
if(origIndx >= 0)
|
||||
{
|
||||
if(itemUpd.Description.LastIndexOf('@') < 0)
|
||||
{
|
||||
itemUpd.Description += " " + item.Description.Substring(origIndx);
|
||||
sendUpdate = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
item.Name = itemUpd.Name;
|
||||
item.Description = itemUpd.Description;
|
||||
|
||||
@@ -492,8 +512,6 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
// itemUpd.NextPermissions, itemUpd.GroupPermissions, itemUpd.EveryOnePermissions, item.Flags,
|
||||
// item.NextPermissions, item.GroupPermissions, item.EveryOnePermissions, item.CurrentPermissions);
|
||||
|
||||
bool sendUpdate = false;
|
||||
|
||||
if (itemUpd.NextPermissions != 0) // Use this to determine validity. Can never be 0 if valid
|
||||
{
|
||||
// Create a set of base permissions that will not include export if the user
|
||||
|
||||
Reference in New Issue
Block a user