From 06212c7d8dc20b11f49d54e42f8299740f90a231 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 9 Nov 2008 17:44:24 +0000 Subject: improved client notifications, minor bugfixes --- src/core/gameserver.cc | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/core') 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()) -- cgit v1.2.3