Merge pull request #343 from BenCat07/patch-8

Update LagExploit.cpp
This commit is contained in:
nullifiedcat 2018-02-05 16:19:59 +03:00 committed by GitHub
commit 8b830a13db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,6 +62,8 @@ void CreateMove()
{
if (CE_BAD(LOCAL_E))
return;
if (!LOCAL_E->m_bAlivePlayer)
return;
if (exticks > 0)
exticks--;
@ -136,8 +138,6 @@ void CreateMove()
static bool bWasHolding = false;
bool bIsHolding = ((g_pUserCmd->buttons & IN_ATTACK) ||
(g_pUserCmd->buttons & IN_ATTACK2));
if (!LOCAL_E->m_bAlivePlayer)
return;
if (instant_weapon_switch && not HasCondition<TFCond_Cloaked>(LOCAL_E))
{
static int lastweapon = 0;