aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/masterserver.cpp
diff options
context:
space:
mode:
authorBarichello <artur@barichello.me>2022-02-12 14:03:25 -0300
committerBarichello <artur@barichello.me>2022-02-12 14:03:25 -0300
commit1cc6381800f6f10a71eafcde1a4ba4412dfb5eb8 (patch)
treec6095dec6c69e5049abefb879ab2740a5717f71c /NorthstarDedicatedTest/masterserver.cpp
parent8ee04102e767e106640881faca59e797e0958803 (diff)
downloadNorthstarLauncher-1cc6381800f6f10a71eafcde1a4ba4412dfb5eb8.tar.gz
NorthstarLauncher-1cc6381800f6f10a71eafcde1a4ba4412dfb5eb8.zip
Format buildainfile.cpp and masterserver.cpp
Diffstat (limited to 'NorthstarDedicatedTest/masterserver.cpp')
-rw-r--r--NorthstarDedicatedTest/masterserver.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/NorthstarDedicatedTest/masterserver.cpp b/NorthstarDedicatedTest/masterserver.cpp
index 701395d3..cfb92409 100644
--- a/NorthstarDedicatedTest/masterserver.cpp
+++ b/NorthstarDedicatedTest/masterserver.cpp
@@ -92,10 +92,12 @@ std::string unescape_unicode(const std::string& str)
result.push_back(cp & ((1 << 6) - 1) | 0b10000000 & (~(1 << 6)));
}
}
- if (!last_match.ready()) {
+ if (!last_match.ready())
+ {
return str;
}
- else {
+ else
+ {
result.append(last_match.suffix());
}
return result;
@@ -392,8 +394,9 @@ void MasterServerManager::RequestServerList()
newServer->requiredMods.push_back(modInfo);
}
- // Can probably re-enable this later with a -verbose flag, but slows down loading of the server browser quite a bit as is
- //spdlog::info(
+ // Can probably re-enable this later with a -verbose flag, but slows down loading of the server browser quite a bit as
+ // is
+ // spdlog::info(
// "Server {} on map {} with playlist {} has {}/{} players", serverObj["name"].GetString(),
// serverObj["map"].GetString(), serverObj["playlist"].GetString(), serverObj["playerCount"].GetInt(),
// serverObj["maxPlayers"].GetInt());