diff options
author | Stijn Buys <ingar@osirion.org> | 2010-10-18 23:41:41 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-10-18 23:41:41 +0000 |
commit | 7a373c3f1fb8ea9dbef7690154bbe332fc386eca (patch) | |
tree | e56652c9b6197017d7eb8e86e5cd431bf9861d57 /src/game/base/game.cc | |
parent | 4c5b00221c9405c5af06143974fbc6296ebe46b5 (diff) |
bullet ActionInterface for controlable entities, KeepAlive flag and g_keepalive
Diffstat (limited to 'src/game/base/game.cc')
-rw-r--r-- | src/game/base/game.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game/base/game.cc b/src/game/base/game.cc index 346208b..ebf09ce 100644 --- a/src/game/base/game.cc +++ b/src/game/base/game.cc @@ -55,6 +55,7 @@ core::Cvar *Game::g_impulseacceleration = 0; core::Cvar *Game::g_jumppointrange = 0; core::Cvar *Game::g_devel = 0; core::Cvar *Game::g_damping = 0; +core::Cvar *Game::g_keepalive; core::Module *factory() { @@ -802,6 +803,9 @@ Game::Game() : core::Module("Project::OSiRiON", true) g_damping = core::Cvar::get("g_damping", "0.1", core::Cvar::Archive); g_damping->set_info("[float] physics damping factor (0-1)"); + + g_keepalive = core::Cvar::get("g_keepalive", "300", core::Cvar::Archive); + g_keepalive->set_info("[float] amount of time dynamic objects are kept alive, in seconds"); } Game::~Game() @@ -1372,7 +1376,6 @@ bool Game::load_defaults() void Game::frame(float seconds) { - if (!running()) return; } |