summaryrefslogtreecommitdiff
path: root/source/sv_init.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2008-05-08 13:21:30 +0000
committerAndrey Nazarov <skuller@skuller.net>2008-05-08 13:21:30 +0000
commitc42cbedd8019373228e260de2f422fb7a15f4156 (patch)
tree9b7f615784ad2f69f93097c3f673cb2004461e0e /source/sv_init.c
parent2abb37ac482ea1d47a516784c2f23538dcc18e5d (diff)
Removed hardcoded menus in favor of scriptable ones.
Made UI module part of the client, removed all glue. Added `pushmenu', `popmenu', 'forcemenuoff' commands. Detect gzipped files by contents, not by *.gz extension (TODO).
Diffstat (limited to 'source/sv_init.c')
-rw-r--r--source/sv_init.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/sv_init.c b/source/sv_init.c
index 700e705..c562969 100644
--- a/source/sv_init.c
+++ b/source/sv_init.c
@@ -140,7 +140,7 @@ static void SV_SpawnServer( cm_t *cm, const char *server, const char *spawnpoint
// set serverinfo variable
SV_InfoSet( "mapname", sv.name );
- Cvar_SetInteger( "sv_running", ss_game );
+ Cvar_SetInteger( sv_running, ss_game, CVAR_SET_DIRECT );
Cvar_Set( "sv_paused", "0" );
Cvar_Set( "timedemo", "0" );
@@ -200,14 +200,14 @@ void SV_InitGame( qboolean ismvd ){
// init clients
if( Cvar_VariableInteger( "deathmatch" ) ) {
if( sv_maxclients->integer <= 1 ) {
- Cvar_SetInteger( "maxclients", 8 );
+ Cvar_SetInteger( sv_maxclients, 8, CVAR_SET_DIRECT );
} else if( sv_maxclients->integer > CLIENTNUM_RESERVED ) {
- Cvar_SetInteger( "maxclients", CLIENTNUM_RESERVED );
+ Cvar_SetInteger( sv_maxclients, CLIENTNUM_RESERVED, CVAR_SET_DIRECT );
}
svs.gametype = GT_DEATHMATCH;
} else if( Cvar_VariableInteger( "coop" ) ) {
if( sv_maxclients->integer <= 1 || sv_maxclients->integer > 4 )
- Cvar_SetInteger( "maxclients", 4 );
+ Cvar_Set( "maxclients", "4" );
svs.gametype = GT_COOP;
} else { // non-deathmatch, non-coop is one player
Cvar_FullSet( "maxclients", "1", CVAR_SERVERINFO|CVAR_LATCH,