Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/server')
-rw-r--r--src/server/console.cc4
-rw-r--r--src/server/server.cc2
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();