diff options
author | Loren Shih <seraph@lindenlab.com> | 2010-09-02 15:36:16 -0400 |
---|---|---|
committer | Loren Shih <seraph@lindenlab.com> | 2010-09-02 15:36:16 -0400 |
commit | 51ecc8208a1b70c9742656230df00b08e082a9c8 (patch) | |
tree | edbc91488d3cf69e308b96004ed5b12efec2b579 /indra/newview/llhudobject.cpp | |
parent | 76eb05380c619daac543872d9ad3ca40a03062c0 (diff) | |
parent | 63f2ddf377fa0fc6a666cdc1001289335d86258b (diff) |
automated merge from viewer-development root
Diffstat (limited to 'indra/newview/llhudobject.cpp')
-rw-r--r-- | indra/newview/llhudobject.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/indra/newview/llhudobject.cpp b/indra/newview/llhudobject.cpp index 6af0ae2b6a..3e814a0773 100644 --- a/indra/newview/llhudobject.cpp +++ b/indra/newview/llhudobject.cpp @@ -305,6 +305,27 @@ void LLHUDObject::renderAllForSelect() } // static +void LLHUDObject::renderAllForTimer() +{ + LLHUDObject *hud_objp; + + hud_object_list_t::iterator object_it; + for (object_it = sHUDObjects.begin(); object_it != sHUDObjects.end(); ) + { + hud_object_list_t::iterator cur_it = object_it++; + hud_objp = (*cur_it); + if (hud_objp->getNumRefs() == 1) + { + sHUDObjects.erase(cur_it); + } + else if (hud_objp->isVisible()) + { + hud_objp->renderForTimer(); + } + } +} + +// static void LLHUDObject::sortObjects() { sHUDObjects.sort(hud_object_further_away()); |