From ce28e056c20bf2723f565bbf464b87781ec248a2 Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Fri, 15 Aug 2008 23:45:42 -0500 Subject: Second Life viewer sources 1.20.2 --- linden/indra/newview/llfloatermap.cpp | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) (limited to 'linden/indra/newview/llfloatermap.cpp') diff --git a/linden/indra/newview/llfloatermap.cpp b/linden/indra/newview/llfloatermap.cpp index 232055a..36a9ab0 100644 --- a/linden/indra/newview/llfloatermap.cpp +++ b/linden/indra/newview/llfloatermap.cpp @@ -184,23 +184,20 @@ BOOL LLFloaterMap::canClose() // virtual void LLFloaterMap::draw() { - if( getVisible() ) + // Note: we can't just gAgent.check cameraMouselook() because the transition states are wrong. + if( gAgent.cameraMouselook()) { - // Note: we can't just gAgent.check cameraMouselook() because the transition states are wrong. - if( gAgent.cameraMouselook()) - { - setMouseOpaque(FALSE); - getDragHandle()->setMouseOpaque(FALSE); + setMouseOpaque(FALSE); + getDragHandle()->setMouseOpaque(FALSE); - drawChild(mMap); - } - else - { - setMouseOpaque(TRUE); - getDragHandle()->setMouseOpaque(TRUE); + drawChild(mMap); + } + else + { + setMouseOpaque(TRUE); + getDragHandle()->setMouseOpaque(TRUE); - LLFloater::draw(); - } + LLFloater::draw(); } } -- cgit v1.1