diff options
author | Armin Weatherwax | 2010-07-29 16:13:19 +0200 |
---|---|---|
committer | Jacek Antonelli | 2010-08-01 15:59:32 -0500 |
commit | 08c29aea25645dbfe76a04de9e703f49cf7ada85 (patch) | |
tree | 2fbcee3903b06c4f957eef845ffc9d013253d872 /linden/indra/newview/llhudeffectpointat.cpp | |
parent | revamp a) privatelookattarget + b) privatepointattarget (diff) | |
download | meta-impy-08c29aea25645dbfe76a04de9e703f49cf7ada85.zip meta-impy-08c29aea25645dbfe76a04de9e703f49cf7ada85.tar.gz meta-impy-08c29aea25645dbfe76a04de9e703f49cf7ada85.tar.bz2 meta-impy-08c29aea25645dbfe76a04de9e703f49cf7ada85.tar.xz |
some more HUDEffect revamp
Diffstat (limited to 'linden/indra/newview/llhudeffectpointat.cpp')
-rw-r--r-- | linden/indra/newview/llhudeffectpointat.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/linden/indra/newview/llhudeffectpointat.cpp b/linden/indra/newview/llhudeffectpointat.cpp index 2b82748..17485cf 100644 --- a/linden/indra/newview/llhudeffectpointat.cpp +++ b/linden/indra/newview/llhudeffectpointat.cpp | |||
@@ -103,6 +103,32 @@ LLHUDEffectPointAt::~LLHUDEffectPointAt() | |||
103 | //----------------------------------------------------------------------------- | 103 | //----------------------------------------------------------------------------- |
104 | void LLHUDEffectPointAt::packData(LLMessageSystem *mesgsys) | 104 | void LLHUDEffectPointAt::packData(LLMessageSystem *mesgsys) |
105 | { | 105 | { |
106 | LLViewerObject* source_object = (LLViewerObject*)mSourceObject; | ||
107 | |||
108 | if (!source_object) | ||
109 | { | ||
110 | markDead(); | ||
111 | return; | ||
112 | } | ||
113 | else if (!source_object->isAvatar()) | ||
114 | { | ||
115 | LL_DEBUGS("HUDEffect")<<"Non-Avatar HUDEffectPointAt message for ID: " | ||
116 | << source_object->getID().asString()<< LL_ENDL; | ||
117 | markDead(); | ||
118 | return; | ||
119 | } | ||
120 | else | ||
121 | { | ||
122 | LLVOAvatar* source_avatar = (LLVOAvatar*)source_object; | ||
123 | if (!source_avatar->isSelf()) | ||
124 | { | ||
125 | LL_DEBUGS("HUDEffect")<<"Non-self HUDEffectPointAt message for ID: " | ||
126 | << source_avatar->getID().asString()<< LL_ENDL; | ||
127 | markDead(); | ||
128 | return; | ||
129 | } | ||
130 | } | ||
131 | |||
106 | // Pack the default data | 132 | // Pack the default data |
107 | LLHUDEffect::packData(mesgsys); | 133 | LLHUDEffect::packData(mesgsys); |
108 | 134 | ||