summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Zaporozhan <dzaporozhan@productengine.com>2009-11-03 12:30:09 +0200
committerDmitry Zaporozhan <dzaporozhan@productengine.com>2009-11-03 12:30:09 +0200
commit5f30904db45c8cd3eec5506503128eaf3df4e429 (patch)
treeaf3d85728bad210ef637e014c037998f48c5a936
parent6508b4f13fd056e6a4ddf1b9845829452a7c3599 (diff)
Fixed Windows build.
--HG-- branch : product-engine
-rw-r--r--indra/newview/llagentui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llagentui.cpp b/indra/newview/llagentui.cpp
index 41c8066aca..2911a35581 100644
--- a/indra/newview/llagentui.cpp
+++ b/indra/newview/llagentui.cpp
@@ -92,8 +92,8 @@ std::string LLAgentUI::buildSLURL(const bool escaped /*= true*/)
//static
BOOL LLAgentUI::checkAgentDistance(const LLVector3& pole, F32 radius)
{
- S32 delta_x = gAgent.getPositionAgent().mV[VX] - pole.mV[VX];
- S32 delta_y = gAgent.getPositionAgent().mV[VY] - pole.mV[VY];
+ F32 delta_x = gAgent.getPositionAgent().mV[VX] - pole.mV[VX];
+ F32 delta_y = gAgent.getPositionAgent().mV[VY] - pole.mV[VY];
return sqrt( delta_x* delta_x + delta_y* delta_y ) < radius;
}