From 08c29aea25645dbfe76a04de9e703f49cf7ada85 Mon Sep 17 00:00:00 2001 From: Armin Weatherwax Date: Thu, 29 Jul 2010 16:13:19 +0200 Subject: some more HUDEffect revamp --- linden/indra/newview/llhudeffectpointat.cpp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'linden/indra/newview/llhudeffectpointat.cpp') 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() //----------------------------------------------------------------------------- void LLHUDEffectPointAt::packData(LLMessageSystem *mesgsys) { + LLViewerObject* source_object = (LLViewerObject*)mSourceObject; + + if (!source_object) + { + markDead(); + return; + } + else if (!source_object->isAvatar()) + { + LL_DEBUGS("HUDEffect")<<"Non-Avatar HUDEffectPointAt message for ID: " + << source_object->getID().asString()<< LL_ENDL; + markDead(); + return; + } + else + { + LLVOAvatar* source_avatar = (LLVOAvatar*)source_object; + if (!source_avatar->isSelf()) + { + LL_DEBUGS("HUDEffect")<<"Non-self HUDEffectPointAt message for ID: " + << source_avatar->getID().asString()<< LL_ENDL; + markDead(); + return; + } + } + // Pack the default data LLHUDEffect::packData(mesgsys); -- cgit v1.1