diff options
author | Andrey Nazarov <skuller@skuller.net> | 2008-10-26 12:54:24 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2008-10-26 12:54:24 +0000 |
commit | 18d2d6fb9e47cc88d08d0dfbb2f9e268ee29327a (patch) | |
tree | 8dbf9680e8d0bf0b78ed1b49fe9bdcf9ef2d2795 /source/sv_main.c | |
parent | 8a4e5f5516e94fe901a332bce7eef9b824f225c6 (diff) |
Cleaned up `sys_win.c', moved some code into `win_ac.c' and `win_dbg.c'.
Fixed broken `sv_ac.c' compilation.
Diffstat (limited to 'source/sv_main.c')
-rw-r--r-- | source/sv_main.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/sv_main.c b/source/sv_main.c index f386dbd..a0f305f 100644 --- a/source/sv_main.c +++ b/source/sv_main.c @@ -122,7 +122,7 @@ void SV_RemoveClient( client_t *client ) { void SV_CleanClient( client_t *client ) { int i; -#if USE_ANTICHEAT & 2 +#if USE_AC_SERVER string_entry_t *bad, *next; for( bad = client->ac_bad_files; bad; bad = next ) { @@ -205,7 +205,7 @@ void SV_DropClient( client_t *client, const char *reason ) { ge->ClientDisconnect( client->edict ); } -#if USE_ANTICHEAT & 2 +#if USE_AC_SERVER AC_ClientDisconnect( client ); #endif @@ -902,7 +902,7 @@ static void SVC_DirectConnect( void ) { Q_strlcpy( newcl->userinfo, userinfo, sizeof( newcl->userinfo ) ); SV_UserinfoChanged( newcl ); -#if USE_ANTICHEAT & 2 +#if USE_AC_SERVER if( !sv_force_reconnect->string[0] || reconnect_var[0] ) { acstring = AC_ClientConnect( newcl ); } else @@ -1580,7 +1580,7 @@ void SV_Frame( unsigned msec ) { } #endif -#if USE_ANTICHEAT & 2 +#if USE_AC_SERVER AC_Run(); #endif @@ -1819,7 +1819,7 @@ void SV_Init( void ) { MVD_Register(); #endif -#if USE_ANTICHEAT & 2 +#if USE_AC_SERVER AC_Register(); #endif @@ -1973,7 +1973,7 @@ void SV_Shutdown( const char *finalmsg, killtype_t type ) { return; } -#if USE_ANTICHEAT & 2 +#if USE_AC_SERVER AC_Disconnect(); #endif |