Skip to content

Commit 601cfff

Browse files
committed
game: fix touch transparency mode for cut scenes
1 parent 4f10928 commit 601cfff

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

game/client/cdll_client_int.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

game/client/touch.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
428435
int nextPowerOfTwo(int x)
429436
{
430437
if( (x & (x - 1)) == 0)

game/client/touch.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ class CTouchControls
161161
{
162162
public:
163163
void Init( );
164+
void LevelInit( );
164165
void Shutdown( );
165166

166167
void Paint( );

0 commit comments

Comments
 (0)