CatBot.cpp: unify autoteam and join_class commands

Slightly less overhead when automatically joining team and class
This commit is contained in:
Unnamed 2019-02-22 17:32:15 +00:00 committed by TotallyNotElite
parent e8138bb26b
commit 454cfbe023

View File

@ -379,10 +379,8 @@ void update()
if (LOCAL_E->m_bAlivePlayer())
autojointeam.update();
if (autojointeam.test_and_set(60000) && !LOCAL_E->m_bAlivePlayer())
{
hack::command_stack().push("autoteam");
hack::command_stack().push("join_class sniper");
}
hack::command_stack().push("autoteam; join_class sniper");
if (micspam)
{
if (micspam_on && micspam_on_timer.test_and_set(*micspam_on * 1000))