Fix crash,adjusting tomorrow

This commit is contained in:
BenCat07 2018-02-23 22:29:31 +01:00 committed by GitHub
parent 70df24a332
commit e9759831ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -305,8 +305,6 @@ void DoResistSwitching()
}
int force_healing_target{ 0 };
static CatVar heal_steamid_perm(CV_SWITCH, "autoheal_steamid_only", 0, "Only heal target with steamid, set steamid to 0 to reset. (this does NOT set the target, it only sets it to never not heal the target set in \"autoheal_steam_id\".)");
static CatCommand heal_steamid(
"autoheal_heal_steamid",
"Heals a player with SteamID (ONCE. Use for easy airstuck med setup)",
@ -420,8 +418,7 @@ void CreateMove()
GetHitbox(target, 7, out);
AimAt(g_pLocalPlayer->v_Eye, out, g_pUserCmd);
g_pUserCmd->buttons |= IN_ATTACK;
if (!heal_steamid_perm)
force_healing_target = 0;
force_healing_target = 0;
}
}
if (!enabled)