mp/src/game/client/sdk/vgui/sdk_spectatorgui.cpp
void CSDKSpectatorGUI::UpdateTimer()
{
	wchar_t szText[ 63 ];

	
	m_nLastTime = (int)( SDKGameRules()->GetMapRemainingTime() );

	if ( m_nLastTime < 0 )
		 m_nLastTime  = 0;

	_snwprintf ( szText, sizeof( szText ) / sizeof( wchar_t ), L"%d:%02d", (m_nLastTime / 60), (m_nLastTime % 60) );
	szText[62] = 0;

	SetLabelText("timerlabel", szText );
}
//-----------------------------------------------------------------------------
// Purpose: Updates the timer label if one exists
//-----------------------------------------------------------------------------
Updates the timer label if one exists
Updates the timer label if one exists
void CSDKSpectatorGUI::UpdateTimer()
{
	wchar_t szText[ 63 ];
	m_nLastTime = (int)( SDKGameRules()->GetMapRemainingTime() );
	if ( m_nLastTime < 0 )
		 m_nLastTime  = 0;
	_snwprintf ( szText, sizeof( szText ) / sizeof( wchar_t ), L"%d:%02d", (m_nLastTime / 60), (m_nLastTime % 60) );
	szText[62] = 0;
	SetLabelText("timerlabel", szText );
}
void CSDKSpectatorGUI :: UpdateTimer ( ) { wchar_t szText [ 63 ] ; m_nLastTime = ( int ) ( SDKGameRules ( ) -> GetMapRemainingTime ( ) ) ; if ( m_nLastTime < 0 ) m_nLastTime = 0 ; _snwprintf ( szText , sizeof ( szText ) / sizeof ( wchar_t ) , L" " , ( m_nLastTime / 60 ) , ( m_nLastTime % 60 ) ) ; szText [ 62 ] = 0 ; SetLabelText ( " " , szText ) ; }
Purpose: Updates the timer label if one exists
Purpose : Updates the timer label if one exists