From bbefa87db18f5b76dc67efa00b7cc798361480f3 Mon Sep 17 00:00:00 2001 From: Andrey Nazarov Date: Thu, 13 Nov 2008 18:58:41 +0000 Subject: 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. --- source/sv_main.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'source/sv_main.c') diff --git a/source/sv_main.c b/source/sv_main.c index 97dc122..9b674f1 100644 --- a/source/sv_main.c +++ b/source/sv_main.c @@ -1767,6 +1767,7 @@ void SV_UserinfoChanged( client_t *cl ) { //============================================================================ +#if USE_SYSCON void SV_SetConsoleTitle( void ) { char buffer[MAX_STRING_CHARS]; @@ -1776,6 +1777,7 @@ void SV_SetConsoleTitle( void ) { Sys_SetConsoleTitle( buffer ); } +#endif static void sv_status_limit_changed( cvar_t *self ) { SV_RateInit( &svs.ratelimit_status, self->integer, 1000 ); @@ -1786,9 +1788,11 @@ static void sv_badauth_time_changed( cvar_t *self ) { SV_RateInit( &svs.ratelimit_badrcon, 1, self->value * 1000 ); } +#if USE_SYSCON static void sv_hostname_changed( cvar_t *self ) { SV_SetConsoleTitle(); } +#endif #if USE_ZLIB voidpf SV_Zalloc OF(( voidpf opaque, uInt items, uInt size )) { @@ -1835,7 +1839,9 @@ void SV_Init( void ) { sv_maxclients = Cvar_Get( "maxclients", "8", CVAR_SERVERINFO|CVAR_LATCH ); sv_reserved_slots = Cvar_Get( "sv_reserved_slots", "0", CVAR_LATCH ); sv_hostname = Cvar_Get( "hostname", "noname", CVAR_SERVERINFO|CVAR_ARCHIVE ); +#if USE_SYSCON sv_hostname->changed = sv_hostname_changed; +#endif sv_timeout = Cvar_Get( "timeout", "90", 0 ); sv_zombietime = Cvar_Get( "zombietime", "2", 0 ); sv_ghostime = Cvar_Get( "sv_ghostime", "6", 0 ); @@ -1903,7 +1909,9 @@ void SV_Init( void ) { sv_pmp.waterfriction = 1; sv_pmp.speedMultiplier = 1; +#if USE_SYSCON SV_SetConsoleTitle(); +#endif } /* @@ -2005,7 +2013,9 @@ void SV_Shutdown( const char *finalmsg, killtype_t type ) { sv_client = NULL; sv_player = NULL; +#if USE_SYSCON SV_SetConsoleTitle(); +#endif Z_LeakTest( TAG_SERVER ); } -- cgit v1.2.3