From 3c84765540a1f72bb5747cf1c8c8c86cc6aa483f Mon Sep 17 00:00:00 2001 From: BenCat07 Date: Mon, 5 Feb 2018 14:19:07 +0100 Subject: [PATCH] Update LagExploit.cpp --- src/hacks/LagExploit.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hacks/LagExploit.cpp b/src/hacks/LagExploit.cpp index e55bbddc..3b333c93 100644 --- a/src/hacks/LagExploit.cpp +++ b/src/hacks/LagExploit.cpp @@ -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(LOCAL_E)) { static int lastweapon = 0;