diff options
author | Merov Linden <merov@lindenlab.com> | 2010-10-22 17:06:18 -0700 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2010-10-22 17:06:18 -0700 |
commit | 25c4f8ff46867ac1e600bf12521740fa8e14722e (patch) | |
tree | 781f71ec52306a6a4f7392d79e221724c928465a /indra | |
parent | e7b2c475d898a90c9e1c458cfbffbe15aacc7ad0 (diff) |
STORM-454 : fix height in world map, allow altitude till 4096m, display altitude on 4 digits
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llfloaterworldmap.cpp | 2 | ||||
-rw-r--r-- | indra/newview/skins/default/xui/en/floater_world_map.xml | 12 |
2 files changed, 8 insertions, 6 deletions
diff --git a/indra/newview/llfloaterworldmap.cpp b/indra/newview/llfloaterworldmap.cpp index 7236894542..ba0eb8a711 100644 --- a/indra/newview/llfloaterworldmap.cpp +++ b/indra/newview/llfloaterworldmap.cpp @@ -635,7 +635,7 @@ void LLFloaterWorldMap::updateTeleportCoordsDisplay( const LLVector3d& pos ) // convert global specified position to a local one F32 region_local_x = (F32)fmod( pos.mdV[VX], (F64)REGION_WIDTH_METERS ); F32 region_local_y = (F32)fmod( pos.mdV[VY], (F64)REGION_WIDTH_METERS ); - F32 region_local_z = (F32)fmod( pos.mdV[VZ], (F64)REGION_WIDTH_METERS ); + F32 region_local_z = (F32)llclamp( pos.mdV[VZ], 0.0, (F64)REGION_HEIGHT_METERS ); // write in the values childSetValue("teleport_coordinate_x", region_local_x ); diff --git a/indra/newview/skins/default/xui/en/floater_world_map.xml b/indra/newview/skins/default/xui/en/floater_world_map.xml index 20629018e2..34c091b0da 100644 --- a/indra/newview/skins/default/xui/en/floater_world_map.xml +++ b/indra/newview/skins/default/xui/en/floater_world_map.xml @@ -541,7 +541,7 @@ halign="right" height="16" layout="topleft" - left="25" + left="15" name="events_label" top_pad="16" width="70"> @@ -574,7 +574,8 @@ left_delta="47" max_val="255" min_val="0" - name="teleport_coordinate_y" > + name="teleport_coordinate_y" + width="44" > <spinner.commit_callback function="WMap.Coordinates" /> </spinner> @@ -584,12 +585,13 @@ follows="right|bottom" height="23" increment="1" - initial_value="128" + initial_value="23" layout="topleft" left_delta="47" - max_val="255" + max_val="4096" min_val="0" - name="teleport_coordinate_z"> + name="teleport_coordinate_z" + width="56" > <spinner.commit_callback function="WMap.Coordinates" /> </spinner> |