Browse Source

game: fix touch transparency mode for cut scenes

bullshit
nillerusr 1 year ago
parent
commit
601cfff164
  1. 1
      game/client/cdll_client_int.cpp
  2. 7
      game/client/touch.cpp
  3. 1
      game/client/touch.h

1
game/client/cdll_client_int.cpp

@ -1631,6 +1631,7 @@ void CHLClient::LevelInitPreEntity( char const* pMapName )
g_RagdollLVManager.SetLowViolence( pMapName ); g_RagdollLVManager.SetLowViolence( pMapName );
gHUD.LevelInit(); gHUD.LevelInit();
gTouch.LevelInit();
#if defined( REPLAY_ENABLED ) #if defined( REPLAY_ENABLED )
// Initialize replay ragdoll recorder // Initialize replay ragdoll recorder

7
game/client/touch.cpp

@ -425,6 +425,13 @@ void CTouchControls::Init()
initialized = true; initialized = true;
} }
void CTouchControls::LevelInit()
{
m_bCutScene = false;
m_AlphaDiff = 0;
m_flHideTouch = 0;
}
int nextPowerOfTwo(int x) int nextPowerOfTwo(int x)
{ {
if( (x & (x - 1)) == 0) if( (x & (x - 1)) == 0)

1
game/client/touch.h

@ -161,6 +161,7 @@ class CTouchControls
{ {
public: public:
void Init( ); void Init( );
void LevelInit( );
void Shutdown( ); void Shutdown( );
void Paint( ); void Paint( );

Loading…
Cancel
Save