aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/misccommands.cpp
diff options
context:
space:
mode:
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 cdadff8d..df2f4a3d 100644
--- a/NorthstarDedicatedTest/misccommands.cpp
+++ b/NorthstarDedicatedTest/misccommands.cpp
@@ -9,7 +9,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)
@@ -20,7 +22,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)
{
@@ -31,11 +34,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();