From d96ac1a8ced2d9b34d0b30d73c0dc1b3a52f12b9 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Sun, 20 Sep 2015 18:07:42 +0200 Subject: [PATCH] Save some unnecessary conversions --- indra/newview/lltracker.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/indra/newview/lltracker.cpp b/indra/newview/lltracker.cpp index a82dc9fdcd..f1cff3cc44 100755 --- a/indra/newview/lltracker.cpp +++ b/indra/newview/lltracker.cpp @@ -637,7 +637,7 @@ void LLTracker::renderBeacon(LLVector3d pos_global, // FIRE-8234 - Show distance from avatar rather than distance from camera. // (Distance from camera is somewhat useless) //text = llformat( "%.0f m", to_vec.magVec()); - F32 beaconDistance = dist_vec(pos_global, pos_agent_3d); + F64 beaconDistance = dist_vec(pos_global, pos_agent_3d); text = llformat("%.0f m", beaconDistance); // @@ -648,7 +648,7 @@ void LLTracker::renderBeacon(LLVector3d pos_global, if (playModeUISndTrackerBeacon) { beaconSoundTimerIsRunning = true; - if (beaconSoundTimer.getElapsedTimeF32() > beaconDistance / 30.0f) + if (beaconSoundTimer.getElapsedTimeF64() > beaconDistance / 30.0) { beaconSoundTimer.reset(); make_ui_sound("UISndTrackerBeacon");