mp/src/game/client/sdk/vgui/da_menu_background.cpp
void SwapDisconnectCommand()
{
//	DevMsg("SwapDisconnectCommand\n");
	ConCommand *_realDisconnectCommand = dynamic_cast< ConCommand* >( g_pCVar->FindCommand( "disconnect" ) );
	ConCommand *_DADisconnectCommand = dynamic_cast< ConCommand* >( g_pCVar->FindCommand( "__da_disconnect" ) );

	if (!_realDisconnectCommand)
		return;
	if (!_DADisconnectCommand)
		return;

	_realDisconnectCommand->Shutdown();
	_realDisconnectCommand->Create("__real_disconnect", "" );
	_realDisconnectCommand->Init();

	_DADisconnectCommand->Shutdown();
	_DADisconnectCommand->Create("disconnect", "Disconnect game from server." );
	_DADisconnectCommand->Init();
}
//Tony; find the disconnect command, and rename it..
Tony; find the disconnect command, and rename it
Tony ; find the disconnect command and rename it
void SwapDisconnectCommand()
{
	ConCommand *_realDisconnectCommand = dynamic_cast< ConCommand* >( g_pCVar->FindCommand( "disconnect" ) );
	ConCommand *_DADisconnectCommand = dynamic_cast< ConCommand* >( g_pCVar->FindCommand( "__da_disconnect" ) );
	if (!_realDisconnectCommand)
		return;
	if (!_DADisconnectCommand)
		return;
	_realDisconnectCommand->Shutdown();
	_realDisconnectCommand->Create("__real_disconnect", "" );
	_realDisconnectCommand->Init();
	_DADisconnectCommand->Shutdown();
	_DADisconnectCommand->Create("disconnect", "Disconnect game from server." );
	_DADisconnectCommand->Init();
}
void SwapDisconnectCommand ( ) { ConCommand * _realDisconnectCommand = dynamic_cast < ConCommand * > ( g_pCVar -> FindCommand ( " " ) ) ; ConCommand * _DADisconnectCommand = dynamic_cast < ConCommand * > ( g_pCVar -> FindCommand ( " " ) ) ; if ( ! _realDisconnectCommand ) return ; if ( ! _DADisconnectCommand ) return ; _realDisconnectCommand -> Shutdown ( ) ; _realDisconnectCommand -> Create ( " " , " " ) ; _realDisconnectCommand -> Init ( ) ; _DADisconnectCommand -> Shutdown ( ) ; _DADisconnectCommand -> Create ( " " , " " ) ; _DADisconnectCommand -> Init ( ) ; }
Tony; find the disconnect command, and rename it..
Tony ; find the disconnect command and rename it ..
//	DevMsg("SwapDisconnectCommand\n");