diff options
Diffstat (limited to 'src/game/base')
-rw-r--r-- | src/game/base/base.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/game/base/base.cc b/src/game/base/base.cc index dee303b..f27d013 100644 --- a/src/game/base/base.cc +++ b/src/game/base/base.cc @@ -162,11 +162,11 @@ void func_impulse(core::Player *player, std::string const &args) ship->impulse(); } -/* ---- The Game class --------------------------------------------- */ +/* ---- class Base ------------------------------------------------ */ Base *Base::game_instance = 0; -Base::Base() : core::Module("Project::OSiRiON") +Base::Base() : core::Module("base", "Project::OSiRiON") { game_instance = this; g_impulsespeed = 0; @@ -216,6 +216,7 @@ void Base::init() func = core::Func::add("list_ship", (core::FuncPtr) func_list_ship); func->set_info("list ship statistics"); + // add engine variables g_impulsespeed = core::Cvar::get("g_impulsespeed", "15", core::Cvar::Game | core::Cvar::Archive); g_impulsespeed->set_info("[float] speed of the impulse drive"); |