diff options
author | Stijn Buys <ingar@osirion.org> | 2008-02-17 18:59:52 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-02-17 18:59:52 +0000 |
commit | 982562fa19bb87a3dab352e562f386f61c171b7b (patch) | |
tree | aeade8d5b7d3c68f5c222af1d8ecc6a734e1b43f /src/server | |
parent | d198b7b8d9ff713d891f35ab173d1f428f610e7d (diff) |
major rewrite of Cvar, Func and Entity
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/console.cc | 4 | ||||
-rw-r--r-- | src/server/server.cc | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/server/console.cc b/src/server/console.cc index a8cc02e..77b5d28 100644 --- a/src/server/console.cc +++ b/src/server/console.cc @@ -52,7 +52,7 @@ void init() con_print << "Initializing console..." << std::endl; // register our engine functions - core::func::add("con_ping", func_con_ping); + core::Func::add("con_ping", (core::FuncPtr) func_con_ping); } void shutdown() @@ -60,7 +60,7 @@ void shutdown() con_print << "Shutting down console..." << std::endl; // unregister our engine functions - core::func::remove("con_ping"); + core::Func::remove("con_ping"); } //--- private ----------------------------------------------------- diff --git a/src/server/server.cc b/src/server/server.cc index 98efdab..5c50bcb 100644 --- a/src/server/server.cc +++ b/src/server/server.cc @@ -52,7 +52,7 @@ void Server::init() { con_print << "Initializing server..." << std::endl; - core::sv_private = core::cvar::set("sv_private", "0", core::cvar::ReadOnly); + core::Cvar::sv_private = core::Cvar::set("sv_dedicated", "1", core::Cvar::ReadOnly); core::Application::init(); console::init(); |