summaryrefslogtreecommitdiff
path: root/source/sv_public.h
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2008-10-11 15:05:50 +0000
committerAndrey Nazarov <skuller@skuller.net>2008-10-11 15:05:50 +0000
commitd02633af4e780c4b6f6d938c67d84d2c968adb79 (patch)
tree3379b9615e285346ad6b1f87639912e01ecd44c7 /source/sv_public.h
parentf8abe42a0d1a42653b39f6cf320d3fbdd1279bb3 (diff)
Major redesign of GTV protocol: added support for persistent GTV connections,
bidirectional pinging, low traffic (`suspended') modes. HTTP server is now gone (remote console logging is temporary gone too), custom binary protocol is used for GTV connections now. MVD client no longer serves other MVD clients, only regular spectators. Changed FIFO buffers to be regular circular buffers, not BIP-buffers. Removed `sv_http_*', `sv_console_auth' variables. Added `sv_mvd_maxclients' variable, `addgtvhost', `delgtvhost' and `listgtvhosts' commands. Renamed `sv_mvd_max*' cvars for consistency. Reset `sv_ghostime' default value back to 6, but changed semantics: it now waits for any packet from client, not just `begin' packet. Added `--disable-mvd-server' and `--disable-mvd-client' options to configure script. FS_Restart() no longer chokes on real files opened for reading. Fixed client chat prompt length. Stubbed out more debugging stuff from dedicated server builds.
Diffstat (limited to 'source/sv_public.h')
-rw-r--r--source/sv_public.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/sv_public.h b/source/sv_public.h
index c6c5e91..c12e2d2 100644
--- a/source/sv_public.h
+++ b/source/sv_public.h
@@ -22,7 +22,9 @@ typedef enum {
ss_dead, // no map loaded
ss_loading, // spawning level edicts
ss_game, // actively running
- ss_broadcast
+#if USE_MVD_CLIENT
+ ss_broadcast // running MVD client
+#endif
} server_state_t;
typedef enum {
@@ -37,5 +39,5 @@ void SV_Shutdown( const char *finalmsg, killtype_t type );
void SV_Frame (unsigned msec);
void SV_SetConsoleTitle( void );
void SV_ConsoleOutput( const char *msg );
-qboolean MVD_GetDemoPercent( int *percent, int *bufferPercent );
+//qboolean MVD_GetDemoPercent( int *percent, int *bufferPercent );