fix joining servers

This commit is contained in:
m 2022-03-01 11:53:23 -06:00
parent 6aebf90c78
commit e772a82704

View File

@ -313,7 +313,6 @@ namespace server_list
const auto dedicated = std::atoi(info.get("dedicated").data()); const auto dedicated = std::atoi(info.get("dedicated").data());
if (!dedicated) if (!dedicated)
{ {
printf("not dedi\n");
return; return;
} }
@ -379,7 +378,7 @@ namespace server_list
// replace UI_RunMenuScript call in LUI_CoD_LuaCall_RefreshServerList to our refresh_servers // replace UI_RunMenuScript call in LUI_CoD_LuaCall_RefreshServerList to our refresh_servers
utils::hook::call(0x14018A0C9, &refresh_server_list); utils::hook::call(0x14018A0C9, &refresh_server_list);
utils::hook::call(0x14018A5E3, &join_server); utils::hook::call(0x14018A5DE, &join_server);
utils::hook::nop(0x14018A5FD, 5); utils::hook::nop(0x14018A5FD, 5);
// do feeder stuff // do feeder stuff