Skip to content

Commit

Permalink
Fix FL_FAKECLIENT flag being cleared in some places
Browse files Browse the repository at this point in the history
  • Loading branch information
SamVanheer committed Mar 9, 2022
1 parent 775931a commit af5155d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dlls/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5301,7 +5301,8 @@ bool CBasePlayer::Menu_Char_Input(int inp)
if (OBS_NONE != pev->iuser1)
{
pev->effects &= ~EF_NODRAW;
pev->flags = FL_CLIENT;
pev->flags &= FL_FAKECLIENT;
pev->flags |= FL_CLIENT;
pev->takedamage = DAMAGE_YES;
m_iHideHUD &= ~(HIDEHUD_HEALTH | HIDEHUD_WEAPONS);
m_afPhysicsFlags &= PFLAG_OBSERVER;
Expand Down
3 changes: 2 additions & 1 deletion dlls/weapons/CDisplacerBall.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ void CDisplacerBall::BallTouch(CBaseEntity* pOther)
{
CBasePlayer* pPlayer = static_cast<CBasePlayer*>(pOther);

//TODO: what is this for? - Solokiller
//Clear any flags set on player (onground, using grapple, etc).
pPlayer->pev->flags &= FL_FAKECLIENT;
pPlayer->pev->flags = FL_CLIENT;
pPlayer->m_flFallVelocity = 0;

Expand Down

0 comments on commit af5155d

Please sign in to comment.