From f484aa7ebc8b6cdf5da41040456e7622fca0778d Mon Sep 17 00:00:00 2001 From: rlen Date: Mon, 19 Feb 2024 21:46:04 +0900 Subject: [PATCH] removed `pullDir` parameter from `OnPhysGunPull` --- sp/src/game/server/hl2/weapon_physcannon.cpp | 2 +- sp/src/game/server/props.cpp | 2 +- sp/src/game/server/props.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sp/src/game/server/hl2/weapon_physcannon.cpp b/sp/src/game/server/hl2/weapon_physcannon.cpp index 19ebb8c3..8a246a2d 100644 --- a/sp/src/game/server/hl2/weapon_physcannon.cpp +++ b/sp/src/game/server/hl2/weapon_physcannon.cpp @@ -2725,7 +2725,7 @@ CWeaponPhysCannon::FindObjectResult_t CWeaponPhysCannon::FindObject( void ) CPhysicsProp* pProp = dynamic_cast(pObj); if (pProp) { - pProp->OnPhysGunPull( pOwner, pullDir ); + pProp->OnPhysGunPull( pOwner ); } // Nudge it towards us diff --git a/sp/src/game/server/props.cpp b/sp/src/game/server/props.cpp index d7fcf599..33aba263 100644 --- a/sp/src/game/server/props.cpp +++ b/sp/src/game/server/props.cpp @@ -3395,7 +3395,7 @@ void CPhysicsProp::OnPhysGunPickup( CBasePlayer *pPhysGunUser, PhysGunPickup_t r //----------------------------------------------------------------------------- // Purpose: //----------------------------------------------------------------------------- -void CPhysicsProp::OnPhysGunPull( CBasePlayer* pPhysGunUser, Vector pullDir ) { +void CPhysicsProp::OnPhysGunPull( CBasePlayer* pPhysGunUser ) { m_OnPhysGunPull.FireOutput(pPhysGunUser, this); } diff --git a/sp/src/game/server/props.h b/sp/src/game/server/props.h index c36f11bb..5c57824d 100644 --- a/sp/src/game/server/props.h +++ b/sp/src/game/server/props.h @@ -413,7 +413,7 @@ public: void EnableMotion( void ); bool CanBePickedUpByPhyscannon( void ); void OnPhysGunPickup( CBasePlayer *pPhysGunUser, PhysGunPickup_t reason ); - void OnPhysGunPull( CBasePlayer *pPhysGunUser, Vector pullDir ); + void OnPhysGunPull( CBasePlayer *pPhysGunUser ); void OnPhysGunDrop( CBasePlayer *pPhysGunUser, PhysGunDrop_t reason ); bool GetPropDataAngles( const char *pKeyName, QAngle &vecAngles );