Change hook prototype of GroundEntChanged to include void* parameter (bug 6050, r=psychonic).

This commit is contained in:
Peace-Maker 2014-05-05 11:40:42 -04:00
parent 217eb68455
commit cec703a059
2 changed files with 3 additions and 3 deletions

View File

@ -164,7 +164,7 @@ SH_DECL_MANUALHOOK1_void(FireBullets, 0, 0, 0, FireBulletsInfo_t const&);
#ifdef GETMAXHEALTH_IS_VIRTUAL
SH_DECL_MANUALHOOK0(GetMaxHealth, 0, 0, 0, int);
#endif
SH_DECL_MANUALHOOK0_void(GroundEntChanged, 0, 0, 0);
SH_DECL_MANUALHOOK1_void(GroundEntChanged, 0, 0, 0, void *);
SH_DECL_MANUALHOOK1(OnTakeDamage, 0, 0, 0, int, CTakeDamageInfoHack &);
SH_DECL_MANUALHOOK0_void(PreThink, 0, 0, 0);
SH_DECL_MANUALHOOK0_void(PostThink, 0, 0, 0);
@ -1000,7 +1000,7 @@ int SDKHooks::Hook_GetMaxHealth()
}
#endif
void SDKHooks::Hook_GroundEntChangedPost()
void SDKHooks::Hook_GroundEntChangedPost(void *pVar)
{
Call(META_IFACEPTR(CBaseEntity), SDKHook_GroundEntChangedPost);
}

View File

@ -282,7 +282,7 @@ public:
#ifdef GETMAXHEALTH_IS_VIRTUAL
int Hook_GetMaxHealth();
#endif
void Hook_GroundEntChangedPost();
void Hook_GroundEntChangedPost(void *pVar);
int Hook_OnTakeDamage(CTakeDamageInfoHack &info);
int Hook_OnTakeDamagePost(CTakeDamageInfoHack &info);
void Hook_PreThink();