Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/gameinterface.cc2
-rw-r--r--src/core/gameserver.cc3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/core/gameinterface.cc b/src/core/gameinterface.cc
index 5e2d428..1f4a5cd 100644
--- a/src/core/gameinterface.cc
+++ b/src/core/gameinterface.cc
@@ -186,7 +186,7 @@ void GameInterface::update_clientstate(float seconds)
if (fabs(side) > 0.00005f) {
cosangle = math::dotproduct(p, entity->state()->axis().forward());
- if (fabs(cosangle) < 0.99995f) {
+ if (fabs(cosangle) < 0.99995f) {
angle = acos(cosangle) * 180.0f / M_PI;
angle = math::sgnf(side) * angle * seconds /
(core::game()->serverframetime() - core::game()->clientframetime());
diff --git a/src/core/gameserver.cc b/src/core/gameserver.cc
index 3e5241e..5064ccd 100644
--- a/src/core/gameserver.cc
+++ b/src/core/gameserver.cc
@@ -245,6 +245,7 @@ void GameServer::frame(float seconds)
return;
server_time += seconds;
+ server_frametime += seconds;
// process incoming network messages
if (server_network) {
@@ -263,8 +264,6 @@ void GameServer::frame(float seconds)
update_clientstate(seconds);
}
- server_frametime += seconds;
-
if ((Cvar::sv_dedicated->value() || Cvar::sv_private->value())) {
if (core::Cvar::sv_framerate->value()) {
float f = 1.0f / core::Cvar::sv_framerate->value();