summaryrefslogtreecommitdiff
path: root/source/sv_main.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2008-09-27 12:33:58 +0000
committerAndrey Nazarov <skuller@skuller.net>2008-09-27 12:33:58 +0000
commit4286646fd3ca3412bc261b66ecd0e7cbe121636a (patch)
treecd1e1d390f61baa09cfb3887b94f98af8d9a1011 /source/sv_main.c
parent5605c38c909aaa905684b79a48ccd0abb43dc685 (diff)
Implemented GMF_WANT_ALL_DISCONNECTS feature.
Added MVD command guide available via `commands'. Allow listing all ready channels using `channels all' command.
Diffstat (limited to 'source/sv_main.c')
-rw-r--r--source/sv_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/sv_main.c b/source/sv_main.c
index baefaef..ae22597 100644
--- a/source/sv_main.c
+++ b/source/sv_main.c
@@ -197,7 +197,7 @@ void SV_DropClient( client_t *client, const char *reason ) {
MSG_WriteByte( svc_disconnect );
SV_ClientAddMessage( client, MSG_RELIABLE|MSG_CLEAR );
- if( oldstate == cs_spawned ) {
+ if( oldstate == cs_spawned || ( g_features->integer & GMF_WANT_ALL_DISCONNECTS ) ) {
// call the prog function for removing a client
// this will remove the body, among other things
ge->ClientDisconnect( client->edict );
@@ -1852,7 +1852,7 @@ void SV_Init( void ) {
sv_badauth_time = Cvar_Get( "sv_badauth_time", "1", 0 );
sv_badauth_time->changed = sv_badauth_time_changed;
- Cvar_Get( "sv_features", va( "%d", GMF_CLIENTNUM|GMF_MVDSPEC ), CVAR_ROM );
+ Cvar_Get( "sv_features", va( "%d", SV_FEATURES ), CVAR_ROM );
g_features = Cvar_Get( "g_features", "0", CVAR_ROM );
// set up default pmove parameters