From 5f30904db45c8cd3eec5506503128eaf3df4e429 Mon Sep 17 00:00:00 2001 From: Dmitry Zaporozhan Date: Tue, 3 Nov 2009 12:30:09 +0200 Subject: Fixed Windows build. --HG-- branch : product-engine --- indra/newview/llagentui.cpp | 4 ++-- 1 file 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; } -- cgit v1.2.3