[Party]: Fix bug

This commit is contained in:
FutureRave 2022-11-26 19:18:41 +00:00
parent d83d667d9f
commit 5f14a73968
No known key found for this signature in database
GPG Key ID: 22F9079C86CFAB31
2 changed files with 3 additions and 3 deletions

View File

@ -352,7 +352,7 @@ namespace Components
info.set("shortversion", SHORTVERSION); info.set("shortversion", SHORTVERSION);
info.set("checksum", std::to_string(Game::Sys_Milliseconds())); info.set("checksum", std::to_string(Game::Sys_Milliseconds()));
info.set("mapname", Dvar::Var("mapname").get<std::string>()); info.set("mapname", Dvar::Var("mapname").get<std::string>());
info.set("isPrivate", password.empty() ? "1" : "0"); info.set("isPrivate", password.empty() ? "0" : "1");
info.set("hc", (Dvar::Var("g_hardcore").get<bool>() ? "1" : "0")); info.set("hc", (Dvar::Var("g_hardcore").get<bool>() ? "1" : "0"));
info.set("securityLevel", std::to_string(securityLevel)); info.set("securityLevel", std::to_string(securityLevel));
info.set("sv_running", (Dedicated::IsRunning() ? "1" : "0")); info.set("sv_running", (Dedicated::IsRunning() ? "1" : "0"));

View File

@ -40,8 +40,8 @@ namespace Components
Game::msg_t msg{}; Game::msg_t msg{};
const auto clientNum = client - Game::svs_clients; const auto clientNum = client - Game::svs_clients;
const Game::Engine::LargeLocal msg_buf_large_local(0x10000); const auto msg_buf_large = std::make_unique<unsigned char[]>(0x10000);
auto* msg_buf = static_cast<unsigned char*>(msg_buf_large_local.GetBuf()); auto* msg_buf = msg_buf_large.get();
assert(VoicePacketCount[clientNum] >= 0); assert(VoicePacketCount[clientNum] >= 0);