diff options
Diffstat (limited to 'linden/indra/newview/llhudobject.cpp')
-rw-r--r-- | linden/indra/newview/llhudobject.cpp | 18 |
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 | |||
168 | LLHUDEffect *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) |