File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -1631,6 +1631,7 @@ void CHLClient::LevelInitPreEntity( char const* pMapName )
16311631 g_RagdollLVManager.SetLowViolence ( pMapName );
16321632
16331633 gHUD .LevelInit ();
1634+ gTouch .LevelInit ();
16341635
16351636#if defined( REPLAY_ENABLED )
16361637 // Initialize replay ragdoll recorder
Original file line number Diff line number Diff line change @@ -425,6 +425,13 @@ void CTouchControls::Init()
425425 initialized = true ;
426426}
427427
428+ void CTouchControls::LevelInit ()
429+ {
430+ m_bCutScene = false ;
431+ m_AlphaDiff = 0 ;
432+ m_flHideTouch = 0 ;
433+ }
434+
428435int nextPowerOfTwo (int x)
429436{
430437 if ( (x & (x - 1 )) == 0 )
Original file line number Diff line number Diff line change @@ -161,6 +161,7 @@ class CTouchControls
161161{
162162public:
163163 void Init ( );
164+ void LevelInit ( );
164165 void Shutdown ( );
165166
166167 void Paint ( );
You can’t perform that action at this time.
0 commit comments