Skip to content

Commit ec1df88

Browse files
committed
update variable name
1 parent 57fc0f8 commit ec1df88

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/cs2fixes.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,11 +1089,11 @@ void CS2Fixes::Hook_GoToIntermission(bool bAbortedMatch)
10891089

10901090
CConVar<bool> g_cvarDropMapWeapons("cs2f_drop_map_weapons", FCVAR_NONE, "Whether to force drop map-spawned weapons on death", false);
10911091

1092-
bool CS2Fixes::Hook_OnTakeDamage_Alive(CTakeDamageResult* pInfoContainer)
1092+
bool CS2Fixes::Hook_OnTakeDamage_Alive(CTakeDamageResult* pDamageResult)
10931093
{
10941094
CCSPlayerPawn* pPawn = META_IFACEPTR(CCSPlayerPawn);
10951095

1096-
if (g_cvarEnableZR.Get() && ZR_Hook_OnTakeDamage_Alive(pInfoContainer->m_pOriginatingInfo, pPawn))
1096+
if (g_cvarEnableZR.Get() && ZR_Hook_OnTakeDamage_Alive(pDamageResult->m_pOriginatingInfo, pPawn))
10971097
RETURN_META_VALUE(MRES_SUPERCEDE, false);
10981098

10991099
// This is a shit place to be doing this, but player_death event is too late and there is no pre-hook alternative

src/cs2fixes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class CS2Fixes : public ISmmPlugin, public IMetamodListener, public ICS2Fixes
9898
void Hook_ApplyGameSettings(KeyValues* pKV);
9999
void Hook_CreateWorkshopMapGroup(const char* name, const CUtlStringList& mapList);
100100
void Hook_GoToIntermission(bool bAbortedMatch);
101-
bool Hook_OnTakeDamage_Alive(CTakeDamageResult* pInfoContainer);
101+
bool Hook_OnTakeDamage_Alive(CTakeDamageResult* pDamageResult);
102102
void Hook_PhysicsTouchShuffle(CUtlVector<TouchLinked_t>* pList, bool unknown);
103103
#ifdef PLATFORM_WINDOWS
104104
Vector* Hook_GetEyePosition(Vector*);

0 commit comments

Comments
 (0)