From cf37e5913df2f502da8531e70f9e8bfffc9a9a36 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Wed, 1 Feb 2012 10:17:37 +0100 Subject: [PATCH] Check against exactly 1020m in radar --- indra/newview/llpanelpeople.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indra/newview/llpanelpeople.cpp b/indra/newview/llpanelpeople.cpp index 9d5543f0e3..410993a7a2 100644 --- a/indra/newview/llpanelpeople.cpp +++ b/indra/newview/llpanelpeople.cpp @@ -984,7 +984,7 @@ void LLPanelPeople::updateNearbyList() av->setAvatarName(avName); // maintain compatibility with underlying list, deprecated U32 lastZOffsetTime = av->getLastZOffsetTime(); F32 avZOffset = av->getZOffset(); - if (avPos[VZ] < 0.1 || avPos[VZ] > 1019.9) // if our official z position is 0.0 (legacy) or 1020 (new), we need a correction. + if (avPos[VZ] < 0.1 || avPos[VZ] == 1020.f) // if our official z position is 0.0 (legacy) or 1020 (new), we need a correction. { // set correction if we have it if (avZOffset > 0.1)