bot: enable query hooking on xash3d-fwgs

This commit is contained in:
jeefo 2023-06-10 02:19:54 +03:00
commit 6daa0a3cd2
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED

View file

@ -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 <void *> (BotSupport::sendTo), true);
}
}