Reduced the respawn time left to 1000

This commit is contained in:
LizardOfOz 2025-03-17 03:20:42 +07:00
parent 4912dc3141
commit bd134f5e5f
3 changed files with 3 additions and 3 deletions

View file

@ -298,7 +298,7 @@ bool CTFTeamStatusPlayerPanel::Update( void )
if ( iRespawnWait != m_iPrevRespawnWait )
{
m_iPrevRespawnWait = iRespawnWait;
if ( ( iRespawnWait < 0 ) || !bSameTeamAsLocalPlayer || ( iRespawnWait >= 9990.0 ) )
if ( ( iRespawnWait < 0 ) || !bSameTeamAsLocalPlayer || ( iRespawnWait >= 1000.0 ) )
{
SetDialogVariable( "respawntime", "" );
}

View file

@ -231,7 +231,7 @@ bool CTFPlayerPanel::Update( void )
if ( iRespawnWait != m_iPrevRespawnWait )
{
m_iPrevRespawnWait = iRespawnWait;
if ( iRespawnWait < 0 || iRespawnWait >= 9990.0 )
if ( iRespawnWait < 0 || iRespawnWait >= 1000.0 )
{
SetDialogVariable( "respawntime", "" );
}

View file

@ -406,7 +406,7 @@ void CTFSpectatorGUI::UpdateReinforcements( void )
{
g_pVGuiLocalize->ConstructString_safe( wLabel, g_pVGuiLocalize->Find("#game_respawntime_in_sec" ), 0 );
}
else if ( iRespawnWait >= 9990.0 )
else if ( iRespawnWait >= 1000.0 )
{
g_pVGuiLocalize->ConstructString_safe( wLabel, g_pVGuiLocalize->Find("#game_respawntime_disabled" ), 0 );
}