diff --git a/src/common/callback.cpp b/src/common/callback.cpp index 1a0ef548..8ea1e366 100644 --- a/src/common/callback.cpp +++ b/src/common/callback.cpp @@ -562,7 +562,7 @@ void Cmd_Exec_f(const CCommand& args) // Prevent users from running neo strafe commands and other quick hacks. // TODO: when reBar becomes a thing, we should verify this function and // flag users that patch them out. - if (!ThreadInServerFrameThread() && g_pClientState->IsActive()) + if (g_pClientState->IsActive() && !ThreadInServerFrameThread()) { const int execQuota = sv_quota_scriptExecsPerSecond.GetInt(); diff --git a/src/engine/net_chan.cpp b/src/engine/net_chan.cpp index 16fefd21..bef2d6c6 100644 --- a/src/engine/net_chan.cpp +++ b/src/engine/net_chan.cpp @@ -372,7 +372,7 @@ void CNetChan::_Shutdown(CNetChan* pChan, const char* szReason, uint8_t bBadRep, bool CNetChan::_ProcessMessages(CNetChan* pChan, bf_read* pBuf) { #ifndef CLIENT_DLL - if (!ThreadInServerFrameThread() || !net_processTimeBudget.GetInt()) + if (!net_processTimeBudget.GetInt() || !ThreadInServerFrameThread()) return pChan->ProcessMessages(pBuf); const double flStartTime = Plat_FloatTime();