mirror of
https://github.com/celisej567/source-engine.git
synced 2026-01-04 18:09:53 +03:00
Some GamepadUI fixes
This commit is contained in:
@@ -1334,6 +1334,16 @@ void CHLClient::HudUpdate( bool bActive )
|
||||
CRTime::UpdateRealTime();
|
||||
#endif
|
||||
|
||||
#ifdef GAMEPADUI
|
||||
if (IsGamepadUI())
|
||||
{
|
||||
if (!enginevgui->IsGameUIVisible())
|
||||
{
|
||||
engine->ExecuteClientCmd("gamepadui_resetfade");
|
||||
}
|
||||
}
|
||||
#endif // GAMEPADUI
|
||||
|
||||
GetClientVoiceMgr()->Frame( frametime );
|
||||
|
||||
gHUD.UpdateHud( bActive );
|
||||
@@ -1373,7 +1383,12 @@ void CHLClient::HudUpdate( bool bActive )
|
||||
void CHLClient::HudReset( void )
|
||||
{
|
||||
gHUD.VidInit();
|
||||
|
||||
#ifdef GAMEPADUI
|
||||
if (IsGamepadUI())
|
||||
{
|
||||
engine->ExecuteClientCmd("gamepadui_resetfade");
|
||||
}
|
||||
#endif // GAMEPADUI
|
||||
PhysicsReset();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user