diff options
author | James Cook <james@lindenlab.com> | 2009-11-17 12:03:57 -0800 |
---|---|---|
committer | James Cook <james@lindenlab.com> | 2009-11-17 12:03:57 -0800 |
commit | 6d6ee6af54cb1c1e1a73ae5697b5d9865e9dac42 (patch) | |
tree | e493dab172ce0ba6321b133fbb2a466e707cf3b4 /indra/newview/llfloatermap.cpp | |
parent | 91b89383a8e3b3aa5cacf5b8c70b7f195dc84fcf (diff) |
EXT-2226 Add "Rotate Mini Map" toggle to mini-map context menu
Reviewed with Kelly
Diffstat (limited to 'indra/newview/llfloatermap.cpp')
-rw-r--r-- | indra/newview/llfloatermap.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llfloatermap.cpp b/indra/newview/llfloatermap.cpp index 3fe711a166..d18f127f85 100644 --- a/indra/newview/llfloatermap.cpp +++ b/indra/newview/llfloatermap.cpp @@ -83,7 +83,6 @@ BOOL LLFloaterMap::postBuild() { mMap = getChild<LLNetMap>("Net Map"); mMap->setScale(gSavedSettings.getF32("MiniMapScale")); - mMap->setRotateMap(gSavedSettings.getBOOL( "MiniMapRotate" )); mMap->setToolTipMsg(getString("ToolTipMsg")); sendChildToBack(mMap); @@ -178,7 +177,8 @@ void LLFloaterMap::draw() { F32 rotation = 0; - if( mMap->getRotateMap() ) + static LLUICachedControl<bool> rotate_map("MiniMapRotate", true); + if( rotate_map ) { // rotate subsequent draws to agent rotation rotation = atan2( LLViewerCamera::getInstance()->getAtAxis().mV[VX], LLViewerCamera::getInstance()->getAtAxis().mV[VY] ); |