From 70fc89d31b81a0cc49fc4b8daf527dd187544d9e Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 8 Jun 2008 18:39:17 +0000 Subject: disable client prediction by default, add --without-client option to configure --- src/core/application.cc | 2 +- src/core/gameinterface.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core') diff --git a/src/core/application.cc b/src/core/application.cc index fb82c6c..738a071 100644 --- a/src/core/application.cc +++ b/src/core/application.cc @@ -132,7 +132,7 @@ void Application::init(int count, char **arguments) Cvar::sv_private = Cvar::get("sv_private", "0"); Cvar::sv_private->set_info("[bool] enable or disable network server for a client"); - Cvar::cl_prediction = Cvar::get("cl_prediction", "1", Cvar::Archive); + Cvar::cl_prediction = Cvar::get("cl_prediction", "0", Cvar::Archive); Cvar::cl_prediction->set_info("[bool] enable or disable client prediction"); // load configuration diff --git a/src/core/gameinterface.cc b/src/core/gameinterface.cc index cfa557b..4aa59be 100644 --- a/src/core/gameinterface.cc +++ b/src/core/gameinterface.cc @@ -244,8 +244,8 @@ void GameInterface::update_clientstate(float seconds) float GameInterface::timeoffset() { - //if (game_clientframetime > game_serverframetime) - // return 1; + if (game_clientframetime > game_serverframetime) + return 1; float d = game_serverframetime - game_previousframetime; if (d <= 0) -- cgit v1.2.3