aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/misccommands.cpp
diff options
context:
space:
mode:
authorKawe Mazidjatari <48657826+Mauler125@users.noreply.github.com>2022-04-20 19:10:26 +0200
committerGitHub <noreply@github.com>2022-04-20 19:10:26 +0200
commit44d1d694982d2a4f302bf7155d4582628f9f32f4 (patch)
tree7cbd75d0eb0464ccd0103424d529fef2000bc0e5 /NorthstarDedicatedTest/misccommands.cpp
parent0c7fcc06f0fb072c00729c646773174b273a18b3 (diff)
parent47ea109be0d73120ddfe6896494e1fce986515b3 (diff)
downloadNorthstarLauncher-44d1d694982d2a4f302bf7155d4582628f9f32f4.tar.gz
NorthstarLauncher-44d1d694982d2a4f302bf7155d4582628f9f32f4.zip
Merge branch 'main' into NetCon
Diffstat (limited to 'NorthstarDedicatedTest/misccommands.cpp')
-rw-r--r--NorthstarDedicatedTest/misccommands.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/NorthstarDedicatedTest/misccommands.cpp b/NorthstarDedicatedTest/misccommands.cpp
index b6abbe7e..8969fcce 100644
--- a/NorthstarDedicatedTest/misccommands.cpp
+++ b/NorthstarDedicatedTest/misccommands.cpp
@@ -10,7 +10,9 @@
void AddMiscConCommands()
{
MAKE_CONCMD(
- "force_newgame", "forces a map load through directly setting g_pHostState->m_iNextState to HS_NEW_GAME", FCVAR_NONE,
+ "force_newgame",
+ "forces a map load through directly setting g_pHostState->m_iNextState to HS_NEW_GAME",
+ FCVAR_NONE,
[](const CCommand& arg)
{
if (arg.ArgC() < 2)
@@ -21,7 +23,8 @@ void AddMiscConCommands()
});
MAKE_CONCMD(
- "ns_start_reauth_and_leave_to_lobby", "called by the server, used to reauth and return the player to lobby when leaving a game",
+ "ns_start_reauth_and_leave_to_lobby",
+ "called by the server, used to reauth and return the player to lobby when leaving a game",
FCVAR_SERVER_CAN_EXECUTE,
[](const CCommand& arg)
{
@@ -32,11 +35,14 @@ void AddMiscConCommands()
// this is a concommand because we make a deferred call to it from another thread
MAKE_CONCMD(
- "ns_end_reauth_and_leave_to_lobby", "", FCVAR_NONE,
+ "ns_end_reauth_and_leave_to_lobby",
+ "",
+ FCVAR_NONE,
[](const CCommand& arg)
{
Cbuf_AddText(
- Cbuf_GetCurrentPlayer(), fmt::format("serverfilter {}", g_ServerAuthenticationManager->m_authData.begin()->first).c_str(),
+ Cbuf_GetCurrentPlayer(),
+ fmt::format("serverfilter {}", g_ServerAuthenticationManager->m_authData.begin()->first).c_str(),
cmd_source_t::kCommandSrcCode);
Cbuf_Execute();