summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorAlexander Gavriliuk <alexandrgproductengine@lindenlab.com>2023-06-15 13:33:47 +0200
committerGuru <alexandrgproductengine@lindenlab.com>2023-06-15 13:38:18 +0200
commit94fd5bcca5723f9779bf1c719e8b2ec6016dc0e8 (patch)
treed330edb00001e8702a9327b9d228c52b97eb8beb /indra/newview
parent7ac094e92105122b22b4693dafae7f0cee72d9a0 (diff)
SL-19404 Navigation bar coordinates slightly off
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llagentui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/newview/llagentui.cpp b/indra/newview/llagentui.cpp
index c19ad2ae6f..acb1a37ff5 100644
--- a/indra/newview/llagentui.cpp
+++ b/indra/newview/llagentui.cpp
@@ -82,9 +82,9 @@ BOOL LLAgentUI::buildLocationString(std::string& str, ELocationFormat fmt,const
if (!region || !parcel) return FALSE;
- S32 pos_x = S32(agent_pos_region.mV[VX]);
- S32 pos_y = S32(agent_pos_region.mV[VY]);
- S32 pos_z = S32(agent_pos_region.mV[VZ]);
+ S32 pos_x = S32(agent_pos_region.mV[VX] + 0.5f);
+ S32 pos_y = S32(agent_pos_region.mV[VY] + 0.5f);
+ S32 pos_z = S32(agent_pos_region.mV[VZ] + 0.5f);
// Round the numbers based on the velocity
F32 velocity_mag_sq = gAgent.getVelocity().magVecSquared();