diff options
author | Stijn Buys <ingar@osirion.org> | 2008-11-09 17:44:24 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-11-09 17:44:24 +0000 |
commit | 06212c7d8dc20b11f49d54e42f8299740f90a231 (patch) | |
tree | af179e6015cb86be61ee640154fde1d70967d919 /src/core | |
parent | f0ba130494173d01c6e800c95e19dc1826ddc68e (diff) |
improved client notifications, minor bugfixes
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/gameserver.cc | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/core/gameserver.cc b/src/core/gameserver.cc index db99356..bbe32dd 100644 --- a/src/core/gameserver.cc +++ b/src/core/gameserver.cc @@ -132,7 +132,8 @@ GameServer::GameServer() : GameInterface() return; } - //load_config(); //FIXME interferes with command line because of cmd.exec + if (server_module->interactive()) + load_config(); //FIXME interferes with command line because of cmd.exec // set the name of the game core::Cvar::set("g_name", server_module->name().c_str(), core::Cvar::Game | core::Cvar::ReadOnly); @@ -171,13 +172,7 @@ GameServer::GameServer() : GameInterface() func = Func::add("kick", func_kick); func->set_info("[player] [reason] kick a player from the server"); -/* - func = Func::add("grant_rcon", func_grant_rcon); - func->set_info("[player] grant rcon rights"); - func = Func::add("revoke_rcon", func_grant_rcon); - func->set_info("[player] revoke rcon rights"); -*/ /* -- shared functions --*/ func = Func::add("time", func_time, true); func->set_info("get the server uptime and current server localtime"); @@ -203,7 +198,8 @@ GameServer::~GameServer() server_network = 0; } - save_config(); + if (server_module->interactive()) + save_config(); if (server_module) { if (server_module->running() && !Cvar::sv_dedicated->value()) |