diff options
| author | Oz Linden <oz@lindenlab.com> | 2011-05-02 07:24:15 -0400 |
|---|---|---|
| committer | Oz Linden <oz@lindenlab.com> | 2011-05-02 07:24:15 -0400 |
| commit | a32daa0c10b285354e94e0e8bf0cc6c5ffce09a5 (patch) | |
| tree | c2ba5f181935b95d2f23406c41917401cd4be963 /indra/newview/llfloaterchat.cpp | |
| parent | 929bde3ed08f9a1d2a8f4c9821b0d51c11d895e9 (diff) | |
| parent | 89216a6c213c126b8ab6dacaeb21340fa8f7a001 (diff) | |
merge changes for vwr-25126
Diffstat (limited to 'indra/newview/llfloaterchat.cpp')
| -rw-r--r-- | indra/newview/llfloaterchat.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/newview/llfloaterchat.cpp b/indra/newview/llfloaterchat.cpp index c2c2e7fe22..2679dbb78b 100644 --- a/indra/newview/llfloaterchat.cpp +++ b/indra/newview/llfloaterchat.cpp @@ -413,8 +413,9 @@ LLColor4 get_text_color(const LLChat& chat) if (!chat.mPosAgent.isExactlyZero()) { LLVector3 pos_agent = gAgent.getPositionAgent(); - F32 distance = dist_vec(pos_agent, chat.mPosAgent); - if (distance > gAgent.getNearChatRadius()) + F32 distance_squared = dist_vec_squared(pos_agent, chat.mPosAgent); + F32 dist_near_chat = gAgent.getNearChatRadius(); + if (distance_squared > dist_near_chat * dist_near_chat) { // diminish far-off chat text_color.mV[VALPHA] = 0.8f; |
