mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 18:38:26 +00:00
fix tf2 linux bot creation
This commit is contained in:
parent
f88885bafc
commit
6e3bd85c14
@ -523,10 +523,10 @@ void LoadDHooks()
|
||||
|
||||
gB_Linux = (gamedata.GetOffset("OS") == 2);
|
||||
|
||||
StartPrepSDKCall(gB_Linux ? SDKCall_Raw : SDKCall_Static);
|
||||
|
||||
if (gEV_Type == Engine_TF2)
|
||||
{
|
||||
StartPrepSDKCall(SDKCall_Static);
|
||||
|
||||
if (!PrepSDKCall_SetFromConf(gamedata, SDKConf_Signature, "NextBotCreatePlayerBot<CTFBot>"))
|
||||
{
|
||||
SetFailState("Failed to get NextBotCreatePlayerBot<CTFBot>");
|
||||
@ -543,6 +543,8 @@ void LoadDHooks()
|
||||
}
|
||||
else
|
||||
{
|
||||
StartPrepSDKCall(gB_Linux ? SDKCall_Raw : SDKCall_Static);
|
||||
|
||||
if (!PrepSDKCall_SetFromConf(gamedata, SDKConf_Signature, "CCSBotManager::BotAddCommand"))
|
||||
{
|
||||
SetFailState("Failed to get CCSBotManager::BotAddCommand");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user