Fixed SDKHooks thinking a hook type was supported when gamedata missing (r=voided).

--HG--
extra : rebase_source : 88a08b03ecbbbaa3bf1c91db30c2e08ceb106e95
This commit is contained in:
Nicholas Hastings 2013-08-22 21:45:19 -04:00
parent dab2932550
commit 50083048f6

View File

@ -39,17 +39,21 @@
offset = 0; \
g_pGameConf->GetOffset(#gamedataname, &offset); \
if (offset > 0) \
{ \
SH_MANUALHOOK_RECONFIGURE(gamedataname, offset, 0, 0); \
SET_PRE_##supportsPre(gamedataname) \
SET_POST_##supportsPost(gamedataname)
SET_POST_##supportsPost(gamedataname) \
}
#define CHECKOFFSET_W(gamedataname, supportsPre, supportsPost) \
offset = 0; \
g_pGameConf->GetOffset("Weapon_"#gamedataname, &offset); \
if (offset > 0) \
{ \
SH_MANUALHOOK_RECONFIGURE(Weapon_##gamedataname, offset, 0, 0); \
SET_PRE_##supportsPre(Weapon##gamedataname) \
SET_POST_##supportsPost(Weapon##gamedataname)
SET_POST_##supportsPost(Weapon##gamedataname) \
}
#define HOOKLOOP \
for(int i = g_HookList.Count() - 1; i >= 0; i--)