aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llvotextbubble.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llvotextbubble.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/linden/indra/newview/llvotextbubble.cpp b/linden/indra/newview/llvotextbubble.cpp
index 5424cc8..69b57d9 100644
--- a/linden/indra/newview/llvotextbubble.cpp
+++ b/linden/indra/newview/llvotextbubble.cpp
@@ -126,7 +126,7 @@ void LLVOTextBubble::updateTextures(LLAgent &agent)
126 126
127 LLVector3 position_local = getPositionAgent() - agent.getCameraPositionAgent(); 127 LLVector3 position_local = getPositionAgent() - agent.getCameraPositionAgent();
128 F32 dot_product = position_local * agent.getFrameAgent().getAtAxis(); 128 F32 dot_product = position_local * agent.getFrameAgent().getAtAxis();
129 F32 cos_angle = dot_product / position_local.magVec(); 129 F32 cos_angle = dot_product / position_local.length();
130 130
131 if (cos_angle > 1.f) 131 if (cos_angle > 1.f)
132 { 132 {