aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/AvatarAppearance.cs
diff options
context:
space:
mode:
authorJeff Ames2007-12-19 08:44:25 +0000
committerJeff Ames2007-12-19 08:44:25 +0000
commit6702b0373371fd2a546a580ad82f5cc175fa29e0 (patch)
treef2750d5be494d2a976cb583476c4f32ef3d895d7 /OpenSim/Region/Environment/Scenes/AvatarAppearance.cs
parent*Added Ban Lines around parcels for banned avatars, but there is no actual bl... (diff)
downloadopensim-SC_OLD-6702b0373371fd2a546a580ad82f5cc175fa29e0.zip
opensim-SC_OLD-6702b0373371fd2a546a580ad82f5cc175fa29e0.tar.gz
opensim-SC_OLD-6702b0373371fd2a546a580ad82f5cc175fa29e0.tar.bz2
opensim-SC_OLD-6702b0373371fd2a546a580ad82f5cc175fa29e0.tar.xz
Misc. cleanup:
* added Util.Clip(value, min, max) * modified asset cache's numPackets calculation to use max packet size (600) instead of 1000 * removed a few magic numbers
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/AvatarAppearance.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/AvatarAppearance.cs4
1 files changed, 1 insertions, 3 deletions
diff --git a/OpenSim/Region/Environment/Scenes/AvatarAppearance.cs b/OpenSim/Region/Environment/Scenes/AvatarAppearance.cs
index b027845..2ec4dbe 100644
--- a/OpenSim/Region/Environment/Scenes/AvatarAppearance.cs
+++ b/OpenSim/Region/Environment/Scenes/AvatarAppearance.cs
@@ -88,7 +88,6 @@ namespace OpenSim.Region.Environment.Scenes
88 m_textureEntry = GetDefaultTextureEntry(); 88 m_textureEntry = GetDefaultTextureEntry();
89 } 89 }
90 90
91
92 /// <summary> 91 /// <summary>
93 /// 92 ///
94 /// </summary> 93 /// </summary>
@@ -109,7 +108,6 @@ namespace OpenSim.Region.Environment.Scenes
109 // (float)m_visualParams[125] = LegLength 108 // (float)m_visualParams[125] = LegLength
110 m_avatarHeight = (1.50856f + (((float)m_visualParams[25] / 255.0f) * (2.525506f - 1.50856f))) 109 m_avatarHeight = (1.50856f + (((float)m_visualParams[25] / 255.0f) * (2.525506f - 1.50856f)))
111 + (((float)m_visualParams[125] / 255.0f) / 1.5f); 110 + (((float)m_visualParams[125] / 255.0f) / 1.5f);
112
113 } 111 }
114 112
115 /// <summary> 113 /// <summary>
@@ -119,7 +117,7 @@ namespace OpenSim.Region.Environment.Scenes
119 public void SendAppearanceToOtherAgent(ScenePresence avatar) 117 public void SendAppearanceToOtherAgent(ScenePresence avatar)
120 { 118 {
121 avatar.ControllingClient.SendAppearance(m_scenePresenceID, m_visualParams, 119 avatar.ControllingClient.SendAppearance(m_scenePresenceID, m_visualParams,
122 m_textureEntry.ToBytes()); 120 m_textureEntry.ToBytes());
123 } 121 }
124 122
125 public void SetWearable(IClientAPI client, int wearableId, AvatarWearable wearable) 123 public void SetWearable(IClientAPI client, int wearableId, AvatarWearable wearable)