From 72c599f9c39db3c5ed1c466f6e5899f3cfb2aeb6 Mon Sep 17 00:00:00 2001 From: LightCat Date: Sat, 30 Mar 2019 12:36:01 +0100 Subject: [PATCH] Remove unneeded autoheal code --- src/hacks/AutoHeal.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/hacks/AutoHeal.cpp b/src/hacks/AutoHeal.cpp index 28f41cee..d2506540 100644 --- a/src/hacks/AutoHeal.cpp +++ b/src/hacks/AutoHeal.cpp @@ -677,18 +677,6 @@ void rvarCallback(settings::VariableBase &var, int after) return; } steamid = after; - for (int i = 1; i <= 32 && i < HIGHEST_ENTITY; i++) - { - CachedEntity *ent = ENTITY(i); - if (CE_BAD(ent)) - continue; - if (ent->m_Type() != ENTITY_PLAYER) - continue; - if (ent->player_info.friendsID && ent->player_info.friendsID == after) - { - return; - } - } } // void LevelInit(){}