Fixed amb1611 - Spy knife critical detour reading from wrong gamedata key
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402041
This commit is contained in:
parent
c473d75d3d
commit
75a77c1925
@ -207,7 +207,7 @@ bool CriticalHitManager::CreateCriticalKnifeDetour()
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!g_pGameConf->GetOffset("CalcCriticalMeleeBackup", (int *)&(knife_restore.bytes)))
|
if (!g_pGameConf->GetOffset("CalcCriticalKnifeBackup", (int *)&(knife_restore.bytes)))
|
||||||
{
|
{
|
||||||
g_pSM->LogError(myself, "Could not locate CalcCriticalKnifeBackup - Disabling Critical Hit forward");
|
g_pSM->LogError(myself, "Could not locate CalcCriticalKnifeBackup - Disabling Critical Hit forward");
|
||||||
return false;
|
return false;
|
||||||
@ -341,7 +341,7 @@ void CriticalHitManager::DisableCriticalDetour()
|
|||||||
detoured = false;
|
detoured = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (melee_callback)
|
if (knife_callback)
|
||||||
{
|
{
|
||||||
/* Remove the patch */
|
/* Remove the patch */
|
||||||
ApplyPatch(knife_address, 0, &knife_restore, NULL);
|
ApplyPatch(knife_address, 0, &knife_restore, NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user