mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2024-12-28 15:45: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;
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user