aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llhudobject.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:05 -0500
committerJacek Antonelli2008-08-15 23:45:05 -0500
commit3d17e02e604977d976cc303b332bda7cebf11a57 (patch)
tree06e3dd8dfa7e7c9d12e24efb9155d4343e77aa7b /linden/indra/newview/llhudobject.cpp
parentSecond Life viewer sources 1.18.1.2 (diff)
downloadmeta-impy-3d17e02e604977d976cc303b332bda7cebf11a57.zip
meta-impy-3d17e02e604977d976cc303b332bda7cebf11a57.tar.gz
meta-impy-3d17e02e604977d976cc303b332bda7cebf11a57.tar.bz2
meta-impy-3d17e02e604977d976cc303b332bda7cebf11a57.tar.xz
Second Life viewer sources 1.18.2.0
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llhudobject.cpp18
1 files changed, 17 insertions, 1 deletions
diff --git a/linden/indra/newview/llhudobject.cpp b/linden/indra/newview/llhudobject.cpp
index 3788c29..35e6d94 100644
--- a/linden/indra/newview/llhudobject.cpp
+++ b/linden/indra/newview/llhudobject.cpp
@@ -155,6 +155,22 @@ LLHUDObject *LLHUDObject::addHUDObject(const U8 type)
155 case LL_HUD_CONNECTOR: 155 case LL_HUD_CONNECTOR:
156 hud_objectp = new LLHUDConnector(type); 156 hud_objectp = new LLHUDConnector(type);
157 break; 157 break;
158 default:
159 llwarns << "Unknown type of hud object:" << (U32) type << llendl;
160 }
161 if (hud_objectp)
162 {
163 sHUDObjects.push_back(hud_objectp);
164 }
165 return hud_objectp;
166}
167
168LLHUDEffect *LLHUDObject::addHUDEffect(const U8 type)
169{
170 LLHUDEffect *hud_objectp = NULL;
171
172 switch (type)
173 {
158 case LL_HUD_EFFECT_BEAM: 174 case LL_HUD_EFFECT_BEAM:
159 hud_objectp = new LLHUDEffectSpiral(type); 175 hud_objectp = new LLHUDEffectSpiral(type);
160 ((LLHUDEffectSpiral *)hud_objectp)->setDuration(0.7f); 176 ((LLHUDEffectSpiral *)hud_objectp)->setDuration(0.7f);
@@ -233,7 +249,7 @@ LLHUDObject *LLHUDObject::addHUDObject(const U8 type)
233 hud_objectp = new LLHUDEffectPointAt(type); 249 hud_objectp = new LLHUDEffectPointAt(type);
234 break; 250 break;
235 default: 251 default:
236 llwarns << "Unknown type of hud object:" << (U32) type << llendl; 252 llwarns << "Unknown type of hud effect:" << (U32) type << llendl;
237 } 253 }
238 254
239 if (hud_objectp) 255 if (hud_objectp)