diff options
author | Andrey Nazarov <skuller@skuller.net> | 2008-05-05 21:18:52 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2008-05-05 21:18:52 +0000 |
commit | 0bd55fbf794d11385bcc64b01b81e8e478295bad (patch) | |
tree | ab548c3ad37fc13c555a5cca9da4348f3e35d84c /source/sv_main.c | |
parent | 49e6170b49fbb933eddec6d0e3f946320c68832f (diff) |
Brought SDL window resizing policy in compliance to ICCCM.
Renamed `vid_placement' cvar to `vid_geometry'.
Load *.pkz files by default.
Do not allow backed-up quake paths at all.
Apply `--enable-dsound' and `--enable-dinput' options to Unix too.
Replaced `s_driver' and `in_driver' cvars with `s_direct' and `in_direct'.
Renamed `s_initsound' cva to `s_enable'.
Improved SDL input grabs handling in windowed mode.
Allow `cl_noskins' to be dynamically changed.
Run client at 10 fps if minimuzed, at 60 fps if not active
(client is disconnected or in background).
Fixed Sys_ExecDefault.
Use absolute mouse positioning for UI.
Hide custom UI cursor in windowed mode.
Diffstat (limited to 'source/sv_main.c')
-rw-r--r-- | source/sv_main.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source/sv_main.c b/source/sv_main.c index 425d14c..7a89ad8 100644 --- a/source/sv_main.c +++ b/source/sv_main.c @@ -1505,19 +1505,21 @@ void SV_Frame( int msec ) { } #ifndef DEDICATED_ONLY + // pause if there is only local client on the server if( !dedicated->integer && cl_paused->integer && - List_Count( &svs.udp_client_list ) == 1 && mvdconns == 0 ) + List_Count( &svs.udp_client_list ) == 1 && mvdconns == 0 && + LIST_FIRST( client_t, &svs.udp_client_list, entry )->state == cs_spawned ) { if( !sv_paused->integer ) { Cvar_Set( "sv_paused", "1" ); - CL_InputActivate(); + IN_Activate(); } return; // don't run if paused } if( sv_paused->integer ) { Cvar_Set( "sv_paused", "0" ); - CL_InputActivate(); + IN_Activate(); } #endif |