mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-04-10 12:09:03 +00:00
Merge bd134f5e5f
into 0565403b15
This commit is contained in:
commit
2835a02752
3 changed files with 6 additions and 2 deletions
|
@ -298,7 +298,7 @@ bool CTFTeamStatusPlayerPanel::Update( void )
|
|||
if ( iRespawnWait != m_iPrevRespawnWait )
|
||||
{
|
||||
m_iPrevRespawnWait = iRespawnWait;
|
||||
if ( ( iRespawnWait < 0 ) || !bSameTeamAsLocalPlayer )
|
||||
if ( ( iRespawnWait < 0 ) || !bSameTeamAsLocalPlayer || ( iRespawnWait >= 1000.0 ) )
|
||||
{
|
||||
SetDialogVariable( "respawntime", "" );
|
||||
}
|
||||
|
|
|
@ -231,7 +231,7 @@ bool CTFPlayerPanel::Update( void )
|
|||
if ( iRespawnWait != m_iPrevRespawnWait )
|
||||
{
|
||||
m_iPrevRespawnWait = iRespawnWait;
|
||||
if ( iRespawnWait < 0 )
|
||||
if ( iRespawnWait < 0 || iRespawnWait >= 1000.0 )
|
||||
{
|
||||
SetDialogVariable( "respawntime", "" );
|
||||
}
|
||||
|
|
|
@ -406,6 +406,10 @@ void CTFSpectatorGUI::UpdateReinforcements( void )
|
|||
{
|
||||
g_pVGuiLocalize->ConstructString_safe( wLabel, g_pVGuiLocalize->Find("#game_respawntime_in_sec" ), 0 );
|
||||
}
|
||||
else if ( iRespawnWait >= 1000.0 )
|
||||
{
|
||||
g_pVGuiLocalize->ConstructString_safe( wLabel, g_pVGuiLocalize->Find("#game_respawntime_disabled" ), 0 );
|
||||
}
|
||||
else
|
||||
{
|
||||
char szSecs[6];
|
||||
|
|
Loading…
Reference in a new issue