From bb9c9bd9975d6998ab6d1e4dafc6b0d50dadaf2f Mon Sep 17 00:00:00 2001 From: Night Owl Date: Thu, 30 Aug 2018 02:43:07 +0500 Subject: [PATCH] Reduce momentory_rot_button's return speed. --- dlls/buttons.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/buttons.cpp b/dlls/buttons.cpp index 90bc42e5..3df2a184 100644 --- a/dlls/buttons.cpp +++ b/dlls/buttons.cpp @@ -1021,6 +1021,8 @@ void CMomentaryRotButton::KeyValue( KeyValueData *pkvd ) if( FStrEq( pkvd->szKeyName, "returnspeed" ) ) { m_returnSpeed = atof( pkvd->szValue ); + if( m_returnSpeed > 45.0f ) + m_returnSpeed = 45.0f; pkvd->fHandled = TRUE; } else if( FStrEq( pkvd->szKeyName, "sounds" ) )