diff options
author | Andrey Nazarov <skuller@skuller.net> | 2008-09-27 11:36:43 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2008-09-27 11:36:43 +0000 |
commit | 5605c38c909aaa905684b79a48ccd0abb43dc685 (patch) | |
tree | f1e2b1ef297d0f0eae5a86284c5da7f0919643f3 /source/mvd_game.c | |
parent | b26baea5a78c8d2487544e3f162d9e4da93121e9 (diff) |
Use `sv_features', `g_features' and `fs_gamedir' cvars instead of environment
variables for communications between server and the game DLL.
Fixed reverted `no PHS' check on sounds MVD client did.
Diffstat (limited to 'source/mvd_game.c')
-rw-r--r-- | source/mvd_game.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/mvd_game.c b/source/mvd_game.c index 4a298f5..b6d2c9c 100644 --- a/source/mvd_game.c +++ b/source/mvd_game.c @@ -1096,7 +1096,7 @@ static void MVD_GameInit( void ) { mvd_default_map = Cvar_Get( "mvd_default_map", "q2dm1", CVAR_LATCH ); mvd_stats_hack = Cvar_Get( "mvd_stats_hack", "0", 0 ); mvd_freeze_hack = Cvar_Get( "mvd_freeze_hack", "1", 0 ); - svs.gameFeatures = GMF_CLIENTNUM|GMF_PROPERINUSE; + Cvar_Set( "g_features", va( "%d", GMF_CLIENTNUM|GMF_PROPERINUSE ) ); Z_TagReserve( ( sizeof( edict_t ) + sizeof( udpClient_t ) ) * sv_maxclients->integer + @@ -1165,6 +1165,8 @@ static void MVD_GameShutdown( void ) { mvd_ge.edict_size = 0; mvd_ge.num_edicts = 0; mvd_ge.max_edicts = 0; + + Cvar_Set( "g_features", "0" ); } static void MVD_GameSpawnEntities( const char *mapname, const char *entstring, const char *spawnpoint ) { @@ -1186,7 +1188,6 @@ static qboolean MVD_GameClientConnect( edict_t *ent, char *userinfo ) { // if there is exactly one active channel, assign them to it, // otherwise, assign to Waiting Room count = List_Count( &mvd_active ); - Com_Printf( "%d channels active\n",count); if( count == 1 ) { mvd = LIST_FIRST( mvd_t, &mvd_active, active ); } else { |