mirror of
https://github.com/nillerusr/source-engine.git
synced 2024-12-22 14:16:50 +00:00
game: fix touch transparency mode for cut scenes
This commit is contained in:
parent
4f10928299
commit
601cfff164
@ -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
|
||||
|
@ -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)
|
||||
|
@ -161,6 +161,7 @@ class CTouchControls
|
||||
{
|
||||
public:
|
||||
void Init( );
|
||||
void LevelInit( );
|
||||
void Shutdown( );
|
||||
|
||||
void Paint( );
|
||||
|
Loading…
Reference in New Issue
Block a user