Fix for CVars mp_scoreboard_showhealth/mp_scoreboard_showmoney

This commit is contained in:
s1lent 2020-03-05 19:21:07 +07:00
parent 41d75f9f2c
commit 23172c0855
No known key found for this signature in database
GPG Key ID: 0FE401DC73916B5C

View File

@ -7295,7 +7295,7 @@ void EXT_FUNC CBasePlayer::__API_HOOK(UpdateClientData)()
#endif // REGAMEDLL_FIXES
#ifdef REGAMEDLL_FIXES
if (scoreboard_showmoney.value != -1.0f)
if (scoreboard_showhealth.value != -1.0f)
#endif
{
MESSAGE_BEGIN(MSG_ONE, gmsgHealthInfo, nullptr, pPlayer->edict());
@ -7305,7 +7305,7 @@ void EXT_FUNC CBasePlayer::__API_HOOK(UpdateClientData)()
}
#ifdef REGAMEDLL_FIXES
if (scoreboard_showhealth.value != -1.0f)
if (scoreboard_showmoney.value != -1.0f)
#endif
{
MESSAGE_BEGIN(MSG_ONE, gmsgAccount, nullptr, pPlayer->edict());