Fix bug stopping original drawing when running chams

Fixes #391 for some reason
This commit is contained in:
TotallyNotElite 2019-04-17 21:35:22 +02:00
parent a1dd4f9fa7
commit e6426f1b7d

View File

@ -135,8 +135,6 @@ DEFINE_HOOKED_METHOD(DrawModelExecute, void, IVModelRender *this_, const DrawMod
if (ent)
if (ent->entindex() == spectator_target)
return;
if (ent && !effect_chams::g_EffectChams.drawing && effect_chams::g_EffectChams.ShouldRenderChams(ent))
return;
}
return original::DrawModelExecute(this_, state, info, bone);