diff options
author | Justin Clark-Casey (justincc) | 2011-12-09 23:07:53 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-12-09 23:07:53 +0000 |
commit | af3cd00048fb6476eb5140bcfccda926627363f2 (patch) | |
tree | a795ef16e7d6db97bd2cddf8737027c1e95ff853 /OpenSim/Region/OptionalModules | |
parent | remove some unused fields in ScenePresence (diff) | |
download | opensim-SC_OLD-af3cd00048fb6476eb5140bcfccda926627363f2.zip opensim-SC_OLD-af3cd00048fb6476eb5140bcfccda926627363f2.tar.gz opensim-SC_OLD-af3cd00048fb6476eb5140bcfccda926627363f2.tar.bz2 opensim-SC_OLD-af3cd00048fb6476eb5140bcfccda926627363f2.tar.xz |
Get rid of IScene.PresenceChildStatus() which always had to execute a lookup in favour of IClientAPI.ISceneAgent.IsChildAgent instead.
Diffstat (limited to 'OpenSim/Region/OptionalModules')
-rw-r--r-- | OpenSim/Region/OptionalModules/Agent/UDP/Linden/LindenUDPInfoModule.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/OptionalModules/Agent/UDP/Linden/LindenUDPInfoModule.cs b/OpenSim/Region/OptionalModules/Agent/UDP/Linden/LindenUDPInfoModule.cs index 8f8124e..c754019 100644 --- a/OpenSim/Region/OptionalModules/Agent/UDP/Linden/LindenUDPInfoModule.cs +++ b/OpenSim/Region/OptionalModules/Agent/UDP/Linden/LindenUDPInfoModule.cs | |||
@@ -219,7 +219,7 @@ namespace OpenSim.Region.CoreModules.UDP.Linden | |||
219 | { | 219 | { |
220 | if (client is LLClientView) | 220 | if (client is LLClientView) |
221 | { | 221 | { |
222 | bool isChild = scene.PresenceChildStatus(client.AgentId); | 222 | bool isChild = client.SceneAgent.IsChildAgent; |
223 | if (isChild && !showChildren) | 223 | if (isChild && !showChildren) |
224 | return; | 224 | return; |
225 | 225 | ||
@@ -308,7 +308,7 @@ namespace OpenSim.Region.CoreModules.UDP.Linden | |||
308 | { | 308 | { |
309 | if (client is IStatsCollector) | 309 | if (client is IStatsCollector) |
310 | { | 310 | { |
311 | bool isChild = scene.PresenceChildStatus(client.AgentId); | 311 | bool isChild = client.SceneAgent.IsChildAgent; |
312 | if (isChild && !showChildren) | 312 | if (isChild && !showChildren) |
313 | return; | 313 | return; |
314 | 314 | ||
@@ -404,7 +404,7 @@ namespace OpenSim.Region.CoreModules.UDP.Linden | |||
404 | firstClient = false; | 404 | firstClient = false; |
405 | } | 405 | } |
406 | 406 | ||
407 | bool isChild = scene.PresenceChildStatus(client.AgentId); | 407 | bool isChild = client.SceneAgent.IsChildAgent; |
408 | if (isChild && !showChildren) | 408 | if (isChild && !showChildren) |
409 | return; | 409 | return; |
410 | 410 | ||