Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-06-08 18:39:17 +0000
committerStijn Buys <ingar@osirion.org>2008-06-08 18:39:17 +0000
commit70fc89d31b81a0cc49fc4b8daf527dd187544d9e (patch)
tree5f96e28da7cf095947a8f1c612e9cacb09f2ab41 /src/core
parent513bfb8d9cf3c246dd15cf67b8a5ff9c7a6f9afe (diff)
disable client prediction by default, add --without-client option to configure
Diffstat (limited to 'src/core')
-rw-r--r--src/core/application.cc2
-rw-r--r--src/core/gameinterface.cc4
2 files changed, 3 insertions, 3 deletions
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)