diff --git a/regamedll/dlls/player.cpp b/regamedll/dlls/player.cpp index 8e13da29a..b89784b5f 100644 --- a/regamedll/dlls/player.cpp +++ b/regamedll/dlls/player.cpp @@ -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()) { diff --git a/regamedll/dlls/weapons.h b/regamedll/dlls/weapons.h index 6ae938be4..3726e28fd 100644 --- a/regamedll/dlls/weapons.h +++ b/regamedll/dlls/weapons.h @@ -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[]; @@ -496,7 +496,7 @@ class CWeaponBox: public CBaseEntity bool m_bIsBomb; private: - Vector m_vecLastValidPlayerHeldPosition; + Vector m_vecLastValidPlayerHeldC4Position; };