Fixed Removeconding on health packs if overhealed

This commit is contained in:
Retarded-Skid 2017-07-13 17:43:09 -04:00
parent f03709c622
commit ab3efef321

View File

@ -148,7 +148,7 @@ void CreateMove() {
} }
// Infinite healthpacks (I'll probably have to move this somewhere else) // Infinite healthpacks (I'll probably have to move this somewhere else)
if (infinite_packs && CE_GOOD(LOCAL_E) && LOCAL_E->m_iHealth != LOCAL_E->m_iMaxHealth) { if (infinite_packs && CE_GOOD(LOCAL_E) && LOCAL_E->m_iHealth <= LOCAL_E->m_iMaxHealth) {
ICollideable* p = RAW_ENT(LOCAL_E)->GetCollideable(); ICollideable* p = RAW_ENT(LOCAL_E)->GetCollideable();
const Vector& max1 = p->OBBMaxs(); const Vector& max1 = p->OBBMaxs();
const Vector& min1 = p->OBBMins(); const Vector& min1 = p->OBBMins();