From db287e4a5133125bb6f25ba21ea97c47b19ac67f Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 18 Oct 2008 14:44:13 +0000 Subject: minor module updates --- src/game/base/base.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/game/base') 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"); -- cgit v1.2.3