From 7794a12b953d6461c3dfb47508252a76594a4544 Mon Sep 17 00:00:00 2001 From: FutureRave Date: Sun, 16 Jan 2022 14:08:52 +0000 Subject: [PATCH] make dedi patch work on client as well --- src/Components/Modules/Script.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Components/Modules/Script.cpp b/src/Components/Modules/Script.cpp index 8a6f9256..9581a64c 100644 --- a/src/Components/Modules/Script.cpp +++ b/src/Components/Modules/Script.cpp @@ -635,11 +635,11 @@ namespace Components const auto developer = Dvar::Var("developer").get(); const auto developer_script = Dvar::Var("developer_script").get(); - if (developer > 0 && Dedicated::IsEnabled()) + if (developer > 0) Utils::Hook::Set(0x48D8C7, 0x75); // Seems to always be false, if set to true - // it will call RuntimeErrorInternal + // it will not call Com_Error (Useful for debugging) if (developer_script) Game::scrVmPub->debugCode = true; });