fix: query hook not working on linux

This commit is contained in:
jeefo 2023-06-08 16:59:52 +03:00
commit 7f07817c52
No known key found for this signature in database
GPG key ID: 927BCA0779BEA8ED
5 changed files with 26 additions and 9 deletions

View file

@ -20,7 +20,7 @@ private:
SmallArray <Twin <String, String>> m_tags {};
HashMap <int32_t, String> m_weaponAlias {};
Detour <decltype (sendto)> m_sendToDetour { "ws2_32.dll", "sendto", sendto };
Detour <decltype (sendto)> m_sendToDetour { };
public:
BotSupport ();

View file

@ -687,6 +687,7 @@ private:
int m_lastPredictIndex { kInvalidNodeIndex }; // last predicted path index
int m_lastPredictLength {}; // last predicted path length
int m_pickupType {}; // type of entity which needs to be used/picked up
float m_headedTime {};
float m_prevTime {}; // time previously checked movement speed
@ -766,7 +767,6 @@ private:
bool m_defuseNotified {}; // bot is notified about bomb defusion
bool m_jumpSequence {}; // next path link will be jump link
Pickup m_pickupType {}; // type of entity which needs to be used/picked up
PathWalk m_pathWalk {}; // pointer to current node from path
Dodge m_combatStrafeDir {}; // direction to strafe
Fight m_fightStyle {}; // combat style to use