mirror of
https://git.code.sf.net/p/quake/quake2forge
synced 2024-11-10 07:12:01 +00:00
Disabled timedemo in deathmatch. For dedicated servers, it is explicitly
set to 0 and made readonly. See Bug#28.
This commit is contained in:
parent
740dc42df5
commit
03f8242b77
1 changed files with 6 additions and 2 deletions
|
@ -782,7 +782,8 @@ void SV_Frame (int msec)
|
||||||
SV_ReadPackets ();
|
SV_ReadPackets ();
|
||||||
|
|
||||||
// move autonomous things around if enough time has passed
|
// move autonomous things around if enough time has passed
|
||||||
if (!sv_timedemo->value && svs.realtime < sv.time)
|
if ((Cvar_VariableValue("deathmatch") || !sv_timedemo->value)
|
||||||
|
&& svs.realtime < sv.time)
|
||||||
{
|
{
|
||||||
// never let the time get too far off
|
// never let the time get too far off
|
||||||
if (sv.time - svs.realtime > 100)
|
if (sv.time - svs.realtime > 100)
|
||||||
|
@ -969,7 +970,10 @@ void SV_Init (void)
|
||||||
zombietime = Cvar_Get ("zombietime", "2", 0);
|
zombietime = Cvar_Get ("zombietime", "2", 0);
|
||||||
sv_showclamp = Cvar_Get ("showclamp", "0", 0);
|
sv_showclamp = Cvar_Get ("showclamp", "0", 0);
|
||||||
sv_paused = Cvar_Get ("paused", "0", 0);
|
sv_paused = Cvar_Get ("paused", "0", 0);
|
||||||
sv_timedemo = Cvar_Get ("timedemo", "0", 0);
|
|
||||||
|
if(dedicated->value) sv_timedemo = Cvar_Get ("timedemo", "0", CVAR_NOSET);
|
||||||
|
else sv_timedemo = Cvar_Get ("timedemo", "0", 0);
|
||||||
|
|
||||||
sv_enforcetime = Cvar_Get ("sv_enforcetime", "0", 0);
|
sv_enforcetime = Cvar_Get ("sv_enforcetime", "0", 0);
|
||||||
allow_download = Cvar_Get ("allow_download", "1", CVAR_ARCHIVE);
|
allow_download = Cvar_Get ("allow_download", "1", CVAR_ARCHIVE);
|
||||||
allow_download_players = Cvar_Get ("allow_download_players", "0", CVAR_ARCHIVE);
|
allow_download_players = Cvar_Get ("allow_download_players", "0", CVAR_ARCHIVE);
|
||||||
|
|
Loading…
Reference in a new issue