Fixed Windows build.

--HG--
branch : product-engine
master
Dmitry Zaporozhan 2009-11-03 12:30:09 +02:00
parent 6508b4f13f
commit 5f30904db4
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}