From 6daa0a3cd291916252b232fff35ef7a1f56b6db4 Mon Sep 17 00:00:00 2001 From: jeefo Date: Sat, 10 Jun 2023 02:19:54 +0300 Subject: [PATCH] bot: enable query hooking on xash3d-fwgs --- src/support.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/support.cpp b/src/support.cpp index 195c90c..fe1d465 100644 --- a/src/support.cpp +++ b/src/support.cpp @@ -496,7 +496,7 @@ void BotSupport::installSendTo () { m_sendToDetour.initialize ("ws2_32.dll", "sendto", sendToAddress); // enable only on modern games - if (game.is (GameFlags::Modern) && (plat.nix || plat.win) && !plat.arm && !m_sendToDetour.detoured ()) { + if ((game.is (GameFlags::Modern) || game.is (GameFlags::Xash3D)) && (plat.nix || plat.win) && !plat.arm && !m_sendToDetour.detoured ()) { m_sendToDetour.install (reinterpret_cast (BotSupport::sendTo), true); } }