UpdateClientData: No send health negative value to draw HUD

This commit is contained in:
s1lentq 2023-12-07 03:31:23 +07:00
parent 5e2aadceac
commit 0c29cf36fc

View File

@ -4855,7 +4855,12 @@ void EXT_FUNC UpdateClientData(const edict_t *ent, int sendweapons, struct clien
} }
cd->flags = pev->flags; cd->flags = pev->flags;
#ifdef REGAMEDLL_FIXES
cd->health = max(pev->health, 0.0f);
#else
cd->health = pev->health; cd->health = pev->health;
#endif
cd->viewmodel = MODEL_INDEX(STRING(pev->viewmodel)); cd->viewmodel = MODEL_INDEX(STRING(pev->viewmodel));
cd->waterlevel = pev->waterlevel; cd->waterlevel = pev->waterlevel;
cd->watertype = pev->watertype; cd->watertype = pev->watertype;