summaryrefslogtreecommitdiff
path: root/source/sv_ac.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2008-11-13 18:58:41 +0000
committerAndrey Nazarov <skuller@skuller.net>2008-11-13 18:58:41 +0000
commitbbefa87db18f5b76dc67efa00b7cc798361480f3 (patch)
treeefc130fe3b4fe22f111154a8720491b756daa7bd /source/sv_ac.c
parentd65e02496cd9873f5bb0297661b19762b44ddfec (diff)
Hacked the source to get it compile on Windows Mobile using CeGCC toolchain.
Fixed nasty memory corruption bug in UI scripts loading code. Fixed software refresh compilation issues on Windows. Inactive MVD channels are now completely destroyed and recreated once they are active again, and they are no longer allowed to stay in waiting state forever. Fixed delay buffer overflow resulting in fatal connection error. Preserve MVD stream flags in demos recorded on GTV server, and handle `inuse' flag correctly on players when writing gamestate. Updated documentation and Debian package descriptions.
Diffstat (limited to 'source/sv_ac.c')
-rw-r--r--source/sv_ac.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/sv_ac.c b/source/sv_ac.c
index beec6a2..01c1f8f 100644
--- a/source/sv_ac.c
+++ b/source/sv_ac.c
@@ -1140,7 +1140,9 @@ static qboolean AC_Flush( void ) {
Com_WPrintf( "ANTICHEAT: Send buffer length exceeded, "
"server may be frozen for a short while!\n" );
do {
+#if USE_SYSCON
Sys_RunConsole();
+#endif
Sys_Sleep( 1 );
AC_Run();
if( !ac.connected ) {
@@ -1375,7 +1377,9 @@ void AC_Connect( qboolean ismvd ) {
AC_LoadChecks();
Com_Printf( "ANTICHEAT: Attempting to connect to %s...\n", ac_server_address->string );
+#if USE_SYSCON
Sys_RunConsole();
+#endif
acs.retry_backoff = AC_DEFAULT_BACKOFF;
if( !AC_Reconnect() ) {
@@ -1384,7 +1388,9 @@ void AC_Connect( qboolean ismvd ) {
// synchronize startup
for( attempts = 0; attempts < 5000; attempts++ ) {
+#if USE_SYSCON
Sys_RunConsole();
+#endif
Sys_Sleep( 1 );
AC_Run();
if( ac.ready || !ac.stream.state ) {