From 418b053e61ace20e59856cd0ee57b2c79dc62385 Mon Sep 17 00:00:00 2001 From: pierow Date: Mon, 1 Feb 2021 20:46:57 -0500 Subject: [PATCH] fix popupmenu view spin regression --- main/source/mod/AvHPieMenuHandler.cpp | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/main/source/mod/AvHPieMenuHandler.cpp b/main/source/mod/AvHPieMenuHandler.cpp index 9616ae85..8bdf7cca 100644 --- a/main/source/mod/AvHPieMenuHandler.cpp +++ b/main/source/mod/AvHPieMenuHandler.cpp @@ -122,13 +122,6 @@ void AvHPieMenuHandler::ClosePieMenu(void) IN_ResetMouse(); gHUD.ShowCrosshair(); - - // Reset showcursor value after forcing it to hide - // Check if piemenu is open or else windows will keep decrementing the showcursor value every time -popupmenu is called from closing the console - if (sPieMenuOpen) - { - gHUD.GetManager().SetMouseVisibility(false); - } sPieMenuOpen = false; @@ -140,11 +133,11 @@ void AvHPieMenuHandler::InternalClosePieMenu(void) if(gHUD.GetManager().GetVGUIComponentNamed(sPieMenuName, theMarineMenu)) { - //// TODO: Select option on menu before closing it! - //if(!gHUD.GetInTopDownMode()) - //{ - // gHUD.GetManager().SetMouseVisibility(false); - //} + // TODO: Select option on menu before closing it! + if(!gHUD.GetInTopDownMode()) + { + gHUD.GetManager().SetMouseVisibility(false); + } theMarineMenu->SetFadeState(false); if(sLastNodeHighlighted)