mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2024-12-27 23:25:41 +03:00
UpdateClientData: No send health negative value to draw HUD
This commit is contained in:
parent
5e2aadceac
commit
0c29cf36fc
@ -4855,7 +4855,12 @@ void EXT_FUNC UpdateClientData(const edict_t *ent, int sendweapons, struct clien
|
||||
}
|
||||
|
||||
cd->flags = pev->flags;
|
||||
#ifdef REGAMEDLL_FIXES
|
||||
cd->health = max(pev->health, 0.0f);
|
||||
#else
|
||||
cd->health = pev->health;
|
||||
#endif
|
||||
|
||||
cd->viewmodel = MODEL_INDEX(STRING(pev->viewmodel));
|
||||
cd->waterlevel = pev->waterlevel;
|
||||
cd->watertype = pev->watertype;
|
||||
|
Loading…
Reference in New Issue
Block a user