From 6c28490fc7f5130cd73d80e47e18a6cd77bdc10f Mon Sep 17 00:00:00 2001 From: tjw Date: Mon, 31 Dec 2007 22:35:22 +0000 Subject: * send along the reason for disconnection when sending the disconnect cmd to all clients in SV_FinalMessage() * on Com_Error(), set the cvar "com_errorCode" with the errorParm_t integer value for the error. This can be used by a mod's ui to an draw error dialog specific for the error (e.g. Reconnect button on ERR_SERVERDISCONNECT) git-svn-id: svn://svn.icculus.org/quake3/trunk@1245 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/qcommon/common.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'code/qcommon') diff --git a/code/qcommon/common.c b/code/qcommon/common.c index ba155bd..d3bb089 100644 --- a/code/qcommon/common.c +++ b/code/qcommon/common.c @@ -244,6 +244,8 @@ void QDECL Com_Error( int code, const char *fmt, ... ) { static int errorCount; int currentTime; + Cvar_Set( "com_errorCode", va( "%i", code ) ); + // when we are running automated scripts, make sure we // know if anything failed if ( com_buildScript && com_buildScript->integer ) { -- cgit v1.2.3