mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
remove country from avatars DetectParams, since it is only used on a cm function that can get it directly
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user