From 454cfbe0231f5ad881048a65a22c3b37f18c533e Mon Sep 17 00:00:00 2001 From: Unnamed Date: Fri, 22 Feb 2019 17:32:15 +0000 Subject: [PATCH] CatBot.cpp: unify autoteam and join_class commands Slightly less overhead when automatically joining team and class --- src/hacks/CatBot.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/hacks/CatBot.cpp b/src/hacks/CatBot.cpp index 713d39dc..c4ebbaa0 100644 --- a/src/hacks/CatBot.cpp +++ b/src/hacks/CatBot.cpp @@ -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))