diff options
author | McCabe Maxsted | 2010-05-26 18:31:17 -0700 |
---|---|---|
committer | Jacek Antonelli | 2010-06-19 02:43:01 -0500 |
commit | 9887d47ef12a9799dbb0038e074c0714df2e0ecd (patch) | |
tree | 66c5a913e9e43c06b5a113fe837c08c0b281a381 | |
parent | Added getZealous to llmortician (diff) | |
download | meta-impy-9887d47ef12a9799dbb0038e074c0714df2e0ecd.zip meta-impy-9887d47ef12a9799dbb0038e074c0714df2e0ecd.tar.gz meta-impy-9887d47ef12a9799dbb0038e074c0714df2e0ecd.tar.bz2 meta-impy-9887d47ef12a9799dbb0038e074c0714df2e0ecd.tar.xz |
Applied Armin's patch: possible-armbreaker-breaker.diff
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llhudeffectpointat.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/linden/indra/newview/llhudeffectpointat.cpp b/linden/indra/newview/llhudeffectpointat.cpp index 88521df..2b82748 100644 --- a/linden/indra/newview/llhudeffectpointat.cpp +++ b/linden/indra/newview/llhudeffectpointat.cpp | |||
@@ -152,6 +152,9 @@ void LLHUDEffectPointAt::unpackData(LLMessageSystem *mesgsys, S32 blocknum) | |||
152 | mesgsys->getUUIDFast(_PREHASH_Effect, _PREHASH_ID, dataId, blocknum); | 152 | mesgsys->getUUIDFast(_PREHASH_Effect, _PREHASH_ID, dataId, blocknum); |
153 | 153 | ||
154 | // ignore messages from ourselves | 154 | // ignore messages from ourselves |
155 | // | ||
156 | //ok, this filters if the message is from ourselves, but not the message content, esp not | ||
157 | // the "source object" which could be a faked "ourselves" | ||
155 | if (!gAgent.mPointAt.isNull() && dataId == gAgent.mPointAt->getID()) | 158 | if (!gAgent.mPointAt.isNull() && dataId == gAgent.mPointAt->getID()) |
156 | { | 159 | { |
157 | return; | 160 | return; |
@@ -173,6 +176,11 @@ void LLHUDEffectPointAt::unpackData(LLMessageSystem *mesgsys, S32 blocknum) | |||
173 | LLViewerObject *objp = gObjectList.findObject(source_id); | 176 | LLViewerObject *objp = gObjectList.findObject(source_id); |
174 | if (objp && objp->isAvatar()) | 177 | if (objp && objp->isAvatar()) |
175 | { | 178 | { |
179 | if (source_id == gAgent.getID()) // faked "ourselves", isn't it? | ||
180 | { | ||
181 | LL_DEBUGS("Messaging") << "corrupted source id. Someone might be trying to grief us with the point at animation" << LL_ENDL; | ||
182 | return; | ||
183 | } | ||
176 | setSourceObject(objp); | 184 | setSourceObject(objp); |
177 | } | 185 | } |
178 | else | 186 | else |