remove country from avatars DetectParams, since it is only used on a cm function that can get it directly

This commit is contained in:
UbitUmarov
2016-08-05 17:08:34 +01:00
parent e9660d5d05
commit 60b08b51b6
2 changed files with 13 additions and 7 deletions

View File

@@ -121,7 +121,6 @@ namespace OpenSim.Region.ScriptEngine.Shared
Type = 0;
Velocity = new LSL_Types.Vector3();
initializeSurfaceTouch();
Country = String.Empty;
}
public UUID Key;
@@ -153,8 +152,6 @@ namespace OpenSim.Region.ScriptEngine.Shared
private int touchFace;
public int TouchFace { get { return touchFace; } }
public string Country;
// This can be done in two places including the constructor
// so be carefull what gets added here
private void initializeSurfaceTouch()
@@ -202,9 +199,6 @@ namespace OpenSim.Region.ScriptEngine.Shared
return;
Name = presence.Firstname + " " + presence.Lastname;
UserAccount account = scene.UserAccountService.GetUserAccount(scene.RegionInfo.ScopeID, Key);
if (account != null)
Country = account.UserCountry;
Owner = Key;
Position = new LSL_Types.Vector3(presence.AbsolutePosition);