File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -606,7 +606,7 @@ void CRD_Crafting_Research_Component::OnCommand( const char *szCommand )
606606 }
607607 }
608608
609- m_pParent->m_pParent ->m_flNextUpdateTime = Plat_FloatTime () + 5 .0 ;
609+ m_pParent->m_pParent ->m_flNextUpdateTime = Plat_FloatTime () + 1 .0 ;
610610
611611 m_pParent->m_pParent ->m_pBackdrop ->SetVisible ( false );
612612 }
@@ -743,6 +743,7 @@ void CRD_Crafting_Research_Donate_Modal::OnCommand( const char *szCommand )
743743 if ( !pSteamUser )
744744 {
745745 Warning ( " Missing ISteamUser! Cannot donate to crafting research.\n " );
746+ m_pParent->m_pBackdrop ->SetVisible ( true );
746747 m_pParent->ShowError ( " #rd_crafting_research_error_steam" );
747748 MarkForDeletion ();
748749 return ;
@@ -758,6 +759,7 @@ void CRD_Crafting_Research_Donate_Modal::OnCommand( const char *szCommand )
758759 }
759760 else if ( !V_stricmp ( szCommand, " Back" ) )
760761 {
762+ m_pParent->m_pBackdrop ->SetVisible ( true );
761763 MarkForDeletion ();
762764 BaseModUI::CBaseModPanel::GetSingleton ().PlayUISound ( BaseModUI::UISOUND_BACK );
763765 }
@@ -810,6 +812,7 @@ void CRD_Crafting_Research_Donate_Modal::OnDonateRequestCompleted( HTTPRequestCo
810812{
811813 BaseModUI::CUIGameData::Get ()->CloseWaitScreen ( NULL , NULL );
812814 BaseModUI::CBaseModPanel::GetSingleton ().GetWindow ( BaseModUI::WT_COLLECTIONS )->SetVisible ( true );
815+ m_pParent->m_pBackdrop ->SetVisible ( true );
813816
814817 if ( bIOFailure )
815818 {
Original file line number Diff line number Diff line change @@ -1564,21 +1564,7 @@ void CRD_VGUI_Option::SetCurrentSliderValue( float flValue )
15641564
15651565 if ( m_flSliderSnap != 0 .0f )
15661566 {
1567- if ( m_bHaveCurrent )
1568- {
1569- if ( flValue < m_Current.m_flValue )
1570- {
1571- flValue = floorf ( flValue / m_flSliderSnap ) * m_flSliderSnap;
1572- }
1573- else
1574- {
1575- flValue = ceilf ( flValue / m_flSliderSnap ) * m_flSliderSnap;
1576- }
1577- }
1578- else
1579- {
1580- flValue = roundf ( flValue / m_flSliderSnap ) * m_flSliderSnap;
1581- }
1567+ flValue = roundf ( flValue / m_flSliderSnap ) * m_flSliderSnap;
15821568 }
15831569
15841570 m_bHaveCurrent = true ;
You can’t perform that action at this time.
0 commit comments