aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/dedicated.cpp
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-03-15 00:04:33 +0000
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-03-15 00:04:33 +0000
commit96aa95aede1fb1f3fde3d2c08728c37520bea4c2 (patch)
tree6ef9b43cab5e215a05fabf0bd197dc3a0593c525 /NorthstarDedicatedTest/dedicated.cpp
parent5df2346ba1414fd43d80fc2919c2f880b7f8aeaf (diff)
downloadNorthstarLauncher-96aa95aede1fb1f3fde3d2c08728c37520bea4c2.tar.gz
NorthstarLauncher-96aa95aede1fb1f3fde3d2c08728c37520bea4c2.zip
move to using g_pCVar more
Diffstat (limited to 'NorthstarDedicatedTest/dedicated.cpp')
-rw-r--r--NorthstarDedicatedTest/dedicated.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/NorthstarDedicatedTest/dedicated.cpp b/NorthstarDedicatedTest/dedicated.cpp
index 35d45800..52d3802d 100644
--- a/NorthstarDedicatedTest/dedicated.cpp
+++ b/NorthstarDedicatedTest/dedicated.cpp
@@ -42,7 +42,7 @@ void RunServer(CDedicatedExports* dedicated)
// add +map if not present
// don't manually execute this from cbuf as users may have it in their startup args anyway, easier just to run from stuffcmds if present
if (!CommandLine()->CheckParm("+map"))
- CommandLine()->AppendParm("+map", Cvar_match_defaultMap->GetString());
+ CommandLine()->AppendParm("+map", g_pCVar->FindVar("match_defaultMap")->GetString());
// run server autoexec and re-run commandline
Cbuf_AddText(Cbuf_GetCurrentPlayer(), "exec autoexec_ns_server", cmd_source_t::kCommandSrcCode);
@@ -55,6 +55,9 @@ void RunServer(CDedicatedExports* dedicated)
// note: we no longer manually set map and hoststate to start server in g_pHostState, we just use +map which seems to initialise stuff
// better
+ // get tickinterval
+ ConVar* Cvar_base_tickinterval_mp = g_pCVar->FindVar("base_tickinterval_mp");
+
// main loop
double frameTitle = 0;
while (g_pEngine->m_nQuitting == EngineQuitState::QUIT_NOTQUITTING)