From f9939aa2ab5cb3651bafbf9a0dcb7d3d3b143e52 Mon Sep 17 00:00:00 2001 From: m Date: Mon, 9 Jan 2023 16:23:29 -0600 Subject: [PATCH] Update and rename patches.cpp to dedi_patches.cpp --- src/client/component/{patches.cpp => dedi_patches.cpp} | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) rename src/client/component/{patches.cpp => dedi_patches.cpp} (69%) diff --git a/src/client/component/patches.cpp b/src/client/component/dedi_patches.cpp similarity index 69% rename from src/client/component/patches.cpp rename to src/client/component/dedi_patches.cpp index 16391559..bc987c4e 100644 --- a/src/client/component/patches.cpp +++ b/src/client/component/dedi_patches.cpp @@ -15,15 +15,12 @@ namespace patches } } - struct component final : generic_component + struct component final : server_component { void post_unpack() override { - if (game::is_server()) - { - // Fix infinite loop - utils::hook::jump(0x1402E86B0_g, scr_are_textures_loaded_stub); - } + // Fix infinite loop + utils::hook::jump(0x1402E86B0_g, scr_are_textures_loaded_stub); } }; }