Skip to content

Commit

Permalink
Change ‘sv_calcpings_method’ default value to 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
skullernet committed Jul 1, 2012
1 parent 0313bfe commit f054e7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/server.txt
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ sv_calcpings_method::
vastly inaccurate results, depending on client settings. Using improved
algorithm is in fact recommended, it should always give stable results
similar to ones obtained by the ‘ping’ command line utility. Default value
is 1 for compatibility reasons.
is 2.
- 0 — disable ping calculation entirely
- 1 — use default ping calculation algorithm based on averaging
- 2 — use improved algorithm based on minimum round trip times
Expand Down
2 changes: 1 addition & 1 deletion src/sv_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2046,7 +2046,7 @@ void SV_Init(void)
sv_pad_packets = Cvar_Get("sv_pad_packets", "0", 0);
#endif
sv_lan_force_rate = Cvar_Get("sv_lan_force_rate", "0", CVAR_LATCH);
sv_calcpings_method = Cvar_Get("sv_calcpings_method", "1", 0);
sv_calcpings_method = Cvar_Get("sv_calcpings_method", "2", 0);
sv_changemapcmd = Cvar_Get("sv_changemapcmd", "", 0);

sv_strafejump_hack = Cvar_Get("sv_strafejump_hack", "1", CVAR_LATCH);
Expand Down

0 comments on commit f054e7a

Please sign in to comment.