fix popupmenu view spin regression

This commit is contained in:
pierow 2021-02-01 20:46:57 -05:00
parent 846ae6eece
commit 418b053e61

View file

@ -122,13 +122,6 @@ void AvHPieMenuHandler::ClosePieMenu(void)
IN_ResetMouse(); IN_ResetMouse();
gHUD.ShowCrosshair(); 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; sPieMenuOpen = false;
@ -140,11 +133,11 @@ void AvHPieMenuHandler::InternalClosePieMenu(void)
if(gHUD.GetManager().GetVGUIComponentNamed(sPieMenuName, theMarineMenu)) if(gHUD.GetManager().GetVGUIComponentNamed(sPieMenuName, theMarineMenu))
{ {
//// TODO: Select option on menu before closing it! // TODO: Select option on menu before closing it!
//if(!gHUD.GetInTopDownMode()) if(!gHUD.GetInTopDownMode())
//{ {
// gHUD.GetManager().SetMouseVisibility(false); gHUD.GetManager().SetMouseVisibility(false);
//} }
theMarineMenu->SetFadeState(false); theMarineMenu->SetFadeState(false);
if(sLastNodeHighlighted) if(sLastNodeHighlighted)