Skip to content

Commit

Permalink
rename method & member
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Shorokhov committed Dec 14, 2022
1 parent 9513084 commit cce1e79
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion regamedll/dlls/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8030,7 +8030,7 @@ CBaseEntity *EXT_FUNC CBasePlayer::__API_HOOK(DropPlayerItem)(const char *pszIte
pWeaponBox->m_bIsBomb = true;
pWeaponBox->SetThink(&CWeaponBox::BombThink);
pWeaponBox->pev->nextthink = gpGlobals->time + 1.0f;
pWeaponBox->SetLastValidHeldPosition(((CC4 *)pWeapon)->GetLastValidHeldPosition());
pWeaponBox->SetLastValidHeldC4Position(((CC4 *)pWeapon)->GetLastValidHeldPosition());

if (TheCSBots())
{
Expand Down
6 changes: 3 additions & 3 deletions regamedll/dlls/weapons.h
Original file line number Diff line number Diff line change
Expand Up @@ -483,8 +483,8 @@ class CWeaponBox: public CBaseEntity
void SetModel_OrigFunc(const char *pszModelName);
#endif

void SetLastValidHeldPosition(const Vector &vecPositon) { m_vecLastValidPlayerHeldPosition = vecPositon; }
void ResetToLastValidPlayerHeldPosition();
void SetLastValidHeldC4Position(const Vector &vecPositon) { m_vecLastValidPlayerHeldC4Position = vecPositon; }
void ResetToLastValidPlayerHeldC4Position();

public:
static TYPEDESCRIPTION m_SaveData[];
Expand All @@ -496,7 +496,7 @@ class CWeaponBox: public CBaseEntity
bool m_bIsBomb;

private:
Vector m_vecLastValidPlayerHeldPosition;
Vector m_vecLastValidPlayerHeldC4Position;
};


Expand Down

0 comments on commit cce1e79

Please sign in to comment.