From 7f80acb3633c8819e3a29d61c31de19a4e667e4f Mon Sep 17 00:00:00 2001 From: BenCat07 Date: Sun, 9 Jun 2019 20:59:15 +0200 Subject: [PATCH] Improve autosticky --- src/hacks/AutoSticky.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hacks/AutoSticky.cpp b/src/hacks/AutoSticky.cpp index 2e88a05e..35b511ee 100644 --- a/src/hacks/AutoSticky.cpp +++ b/src/hacks/AutoSticky.cpp @@ -151,7 +151,7 @@ void CreateMove() if (bomb->m_vecOrigin().DistToSqr(position) < 16900) { // Vis check the target from the bomb - if (IsVectorVisible(bomb->m_vecOrigin(), target->m_vecDormantOrigin(), true)) + if (IsVectorVisible(bomb->m_vecOrigin(), position, true)) { // Check user settings if legit mode is off, if legit mode // is off then detonate