bot: enable query hooking on xash3d-fwgs
This commit is contained in:
parent
132e1b1585
commit
6daa0a3cd2
1 changed files with 1 additions and 1 deletions
|
|
@ -496,7 +496,7 @@ void BotSupport::installSendTo () {
|
||||||
m_sendToDetour.initialize ("ws2_32.dll", "sendto", sendToAddress);
|
m_sendToDetour.initialize ("ws2_32.dll", "sendto", sendToAddress);
|
||||||
|
|
||||||
// enable only on modern games
|
// 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);
|
m_sendToDetour.install (reinterpret_cast <void *> (BotSupport::sendTo), true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue