diff options
-rw-r--r-- | source/common.c | 1 | ||||
-rw-r--r-- | source/sys_win.c | 8 |
2 files changed, 4 insertions, 5 deletions
diff --git a/source/common.c b/source/common.c index d3d6618..886f0df 100644 --- a/source/common.c +++ b/source/common.c @@ -1322,7 +1322,6 @@ void Qcommon_Init( int argc, char **argv ) { Cmd_AddCommand( "errordrop", Com_ErrorDrop_f ); Cmd_AddCommand( "freeze", Com_Freeze_f ); Cmd_AddCommand( "crash", Com_Crash_f ); - Cmd_AddCommand( "vstest", Com_VsnprintfTest_f ); #endif Cmd_AddCommand( "lasterror", Com_LastError_f ); diff --git a/source/sys_win.c b/source/sys_win.c index 3792e39..973dc14 100644 --- a/source/sys_win.c +++ b/source/sys_win.c @@ -1072,7 +1072,7 @@ char *Sys_GetCurrentDirectory( void ) { //======================================================================= -#if USE_ANTICHEAT & 1 +#if !( defined DEDICATED_ONLY ) && ( USE_ANTICHEAT & 1 ) typedef PVOID (*FNINIT)( VOID ); @@ -1100,7 +1100,7 @@ qboolean Sys_GetAntiCheatAPI( void ) { } //windows version check - if( !winnt ) { + if( !iswinnt ) { Com_Printf( S_COLOR_YELLOW "Anticheat requires Windows 2000/XP/2003.\n" ); return qfalse; @@ -1308,8 +1308,8 @@ PRIVATE DWORD Sys_ExceptionHandler( DWORD exceptionCode, LPEXCEPTION_POINTERS ex memcpy( path, execdir, len ); memcpy( path + len, "\\Q2PRO_CrashReportXX.txt", 25 ); for( i = 0; i < 100; i++ ) { - path[len+18] = i / 10; - path[len+19] = i % 10; + path[len+18] = '0' + i / 10; + path[len+19] = '0' + i % 10; if( !Sys_GetFileInfo( path, NULL ) ) { break; } |