Skip to content
Snippets Groups Projects
Commit 94fd5bcc authored by Alexander Gavriliuk's avatar Alexander Gavriliuk Committed by Guru
Browse files

SL-19404 Navigation bar coordinates slightly off

parent 7ac094e9
No related branches found
No related tags found
No related merge requests found
...@@ -82,9 +82,9 @@ BOOL LLAgentUI::buildLocationString(std::string& str, ELocationFormat fmt,const ...@@ -82,9 +82,9 @@ BOOL LLAgentUI::buildLocationString(std::string& str, ELocationFormat fmt,const
if (!region || !parcel) return FALSE; if (!region || !parcel) return FALSE;
S32 pos_x = S32(agent_pos_region.mV[VX]); S32 pos_x = S32(agent_pos_region.mV[VX] + 0.5f);
S32 pos_y = S32(agent_pos_region.mV[VY]); S32 pos_y = S32(agent_pos_region.mV[VY] + 0.5f);
S32 pos_z = S32(agent_pos_region.mV[VZ]); S32 pos_z = S32(agent_pos_region.mV[VZ] + 0.5f);
// Round the numbers based on the velocity // Round the numbers based on the velocity
F32 velocity_mag_sq = gAgent.getVelocity().magVecSquared(); F32 velocity_mag_sq = gAgent.getVelocity().magVecSquared();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment