diff --git a/game/client/cdll_client_int.cpp b/game/client/cdll_client_int.cpp index e4221104..ab16bd7c 100644 --- a/game/client/cdll_client_int.cpp +++ b/game/client/cdll_client_int.cpp @@ -1631,6 +1631,7 @@ void CHLClient::LevelInitPreEntity( char const* pMapName ) g_RagdollLVManager.SetLowViolence( pMapName ); gHUD.LevelInit(); + gTouch.LevelInit(); #if defined( REPLAY_ENABLED ) // Initialize replay ragdoll recorder diff --git a/game/client/touch.cpp b/game/client/touch.cpp index 33a0817f..2d71646b 100644 --- a/game/client/touch.cpp +++ b/game/client/touch.cpp @@ -425,6 +425,13 @@ void CTouchControls::Init() initialized = true; } +void CTouchControls::LevelInit() +{ + m_bCutScene = false; + m_AlphaDiff = 0; + m_flHideTouch = 0; +} + int nextPowerOfTwo(int x) { if( (x & (x - 1)) == 0) diff --git a/game/client/touch.h b/game/client/touch.h index 847849df..c11fd46a 100644 --- a/game/client/touch.h +++ b/game/client/touch.h @@ -161,6 +161,7 @@ class CTouchControls { public: void Init( ); + void LevelInit( ); void Shutdown( ); void Paint( );