diff --git a/r5dev/engine/sdk_dll.cpp b/r5dev/engine/sdk_dll.cpp index 88197f28..658a664f 100644 --- a/r5dev/engine/sdk_dll.cpp +++ b/r5dev/engine/sdk_dll.cpp @@ -24,7 +24,7 @@ void CEngineSDK::FixedFrame() g_pConsole->Think(); #endif // !DEDICATED - std::chrono::duration interval{ sdk_fixedframe_tickinterval->GetFloat()}; + std::chrono::duration interval{ sdk_fixedframe_tickinterval->GetFloat()}; std::this_thread::sleep_for(interval); } } diff --git a/r5dev/engine/server/server.cpp b/r5dev/engine/server/server.cpp index 45c78a30..8e7e2882 100644 --- a/r5dev/engine/server/server.cpp +++ b/r5dev/engine/server/server.cpp @@ -97,11 +97,8 @@ CClient* CServer::Authenticate(CServer* pServer, user_creds_s* pInpacket) if (g_bCheckCompBanDB) { - if (g_pMasterServer) - { - std::thread th(SV_IsClientBanned, g_pMasterServer, svIpAddress, pInpacket->m_nNucleusID); - th.detach(); - } + std::thread th(SV_IsClientBanned, g_pMasterServer, svIpAddress, pInpacket->m_nNucleusID); + th.detach(); } return v_CServer_Authenticate(pServer, pInpacket); diff --git a/r5dev/gameui/IBrowser.cpp b/r5dev/gameui/IBrowser.cpp index e9792720..7b34e2c2 100644 --- a/r5dev/gameui/IBrowser.cpp +++ b/r5dev/gameui/IBrowser.cpp @@ -17,7 +17,6 @@ History: #include "tier0/fasttimer.h" #include "tier0/frametask.h" #include "tier0/commandline.h" -#include "tier1/IConVar.h" #include "tier1/cvar.h" #include "windows/id3dx.h" #include "windows/console.h" @@ -47,9 +46,6 @@ CBrowser::CBrowser(void) std::thread refresh(&CBrowser::RefreshServerList, this); refresh.detach(); - std::thread think(&CBrowser::Think, this); - think.detach(); // !FIXME: Run from SDK MainFrame when finished. - m_pszBrowserTitle = "Server Browser"; m_rLockedIconBlob = GetModuleResource(IDB_PNG2); } @@ -151,7 +147,7 @@ void CBrowser::Think(void) { if (m_flFadeAlpha <= 1.f) { - m_flFadeAlpha += .05f; + m_flFadeAlpha += .1f; } } else // Reset to full transparent. @@ -339,7 +335,7 @@ void CBrowser::HiddenServersModal(void) ImGui::PopStyleColor(); // Pop the override for the child bg. ImGui::SameLine(); - ImGui::Text("Enter the token to connect"); + ImGui::Text("Enter token to connect"); ImGui::PushItemWidth(ImGui::GetWindowContentRegionWidth()); // Override item width. ImGui::InputTextWithHint("##HiddenServersConnectModal_TokenInput", "Token", &m_svHiddenServerToken); diff --git a/r5dev/gameui/IConsole.cpp b/r5dev/gameui/IConsole.cpp index 88630540..c572a209 100644 --- a/r5dev/gameui/IConsole.cpp +++ b/r5dev/gameui/IConsole.cpp @@ -151,7 +151,7 @@ void CConsole::Think(void) { if (m_flFadeAlpha <= 1.f) { - m_flFadeAlpha += .05f; + m_flFadeAlpha += .1f; } } else // Reset to full transparent. diff --git a/r5dev/tier1/IConVar.cpp b/r5dev/tier1/IConVar.cpp index e0b8614b..5740bb00 100644 --- a/r5dev/tier1/IConVar.cpp +++ b/r5dev/tier1/IConVar.cpp @@ -66,7 +66,7 @@ void ConVar::Init(void) const //------------------------------------------------------------------------- // ENGINE | hostdesc = ConVar::Create("hostdesc", "", FCVAR_RELEASE, "Host game server description.", false, 0.f, false, 0.f, nullptr, nullptr); - sdk_fixedframe_tickinterval = ConVar::Create("sdk_fixedframe_tickinterval", "0.05", FCVAR_RELEASE, "The tick interval used by the SDK fixed frame.", false, 0.f, false, 0.f, nullptr, nullptr); + sdk_fixedframe_tickinterval = ConVar::Create("sdk_fixedframe_tickinterval", "0.02", FCVAR_RELEASE, "The tick interval used by the SDK fixed frame.", false, 0.f, false, 0.f, nullptr, nullptr); staticProp_defaultBuildFrustum = ConVar::Create("staticProp_defaultBuildFrustum", "0", FCVAR_DEVELOPMENTONLY, "Use the old solution for building static prop frustum culling.", false, 0.f, false, 0.f, nullptr, nullptr); cm_unset_all_cmdquery = ConVar::Create("cm_unset_all_cmdquery" , "0", FCVAR_DEVELOPMENTONLY | FCVAR_REPLICATED, "Returns false on every ConVar/ConCommand query ( !warning! ).", false, 0.f, false, 0.f, nullptr, nullptr);