diff options
Diffstat (limited to 'src/core/gameserver.cc')
-rw-r--r-- | src/core/gameserver.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/core/gameserver.cc b/src/core/gameserver.cc index 31c6d42..597de33 100644 --- a/src/core/gameserver.cc +++ b/src/core/gameserver.cc @@ -14,6 +14,7 @@ #include "core/gameserver.h" #include "core/loader.h" #include "core/parser.h" +#include "core/physics.h" #include "core/netserver.h" #include "filesystem/filesystem.h" #include "sys/sys.h" @@ -130,6 +131,8 @@ GameServer::GameServer() : GameInterface() Parser::init(); + Physics::init(); + server_module = Loader::init(); if (!server_module) { @@ -228,8 +231,10 @@ GameServer::~GameServer() Func::remove("time"); Func::remove("who"); + Physics::done(); + Parser::done(); - + server_instance = 0; } @@ -490,6 +495,8 @@ void GameServer::frame(unsigned long timestamp) update_clientstate(); }*/ + Physics::frame(timestamp); + if ((Cvar::sv_dedicated->value() || Cvar::sv_private->value())) { if (core::Cvar::sv_framerate->value()) { float f = 1000.0f / core::Cvar::sv_framerate->value(); |