From 8df311d126e70234a98ac25ca25d7bcc059689d5 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Sun, 21 Aug 2022 01:44:01 +0200 Subject: [PATCH] Flip Cbuf_Execute() removal Removed the wrong call --- r5dev/engine/host_state.cpp | 1 + r5dev/vstdlib/callback.cpp | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/r5dev/engine/host_state.cpp b/r5dev/engine/host_state.cpp index 4fda3df1..21210c14 100644 --- a/r5dev/engine/host_state.cpp +++ b/r5dev/engine/host_state.cpp @@ -274,6 +274,7 @@ FORCEINLINE void CHostState::LoadConfig(void) const #endif // !DEDICATED Cbuf_AddText(Cbuf_GetCurrentPlayer(), "exec \"autoexec_dev.cfg\"", cmd_source_t::kCommandSrcCode); } + Cbuf_Execute(); } } diff --git a/r5dev/vstdlib/callback.cpp b/r5dev/vstdlib/callback.cpp index f41b5cb8..223c6def 100644 --- a/r5dev/vstdlib/callback.cpp +++ b/r5dev/vstdlib/callback.cpp @@ -1049,7 +1049,6 @@ void BHit_f(const CCommand& args) vecAbsStart.z + vecAbsEnd.z * MAX_COORD_RANGE); Cbuf_AddText(Cbuf_GetCurrentPlayer(), szBuf, cmd_source_t::kCommandSrcCode); - Cbuf_Execute(); } #endif // !DEDICATED }