mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[saco] Fix and match CheatProcessorHook()
This commit is contained in:
parent
302705ab51
commit
88e1d25bf1
@ -21,6 +21,7 @@ BYTE *pbyteCurrentPlayer = (BYTE *)0xB7CD74;
|
||||
PED_TYPE pedCrimeReportTemp{}; // pay attention! used in 0x100A1790 ; void __thiscall CGame::PlayCrimeReport as pedCrimeReportTemp 0x10150D00
|
||||
|
||||
int iRadarColor1=0;
|
||||
DWORD dwSavedCheatFn=0;
|
||||
|
||||
float fFarClip=1400.0f;
|
||||
|
||||
@ -329,6 +330,7 @@ NUDE CheatProcessorHook()
|
||||
{
|
||||
__asm
|
||||
{
|
||||
mov dwSavedCheatFn, eax
|
||||
pushad
|
||||
|
||||
// CCheat::m_bHasPlayerCheated = true
|
||||
@ -425,8 +427,6 @@ NUDE CProjectile_Update_Hook()
|
||||
test ecx, ecx //
|
||||
jnz dont_delete // if the owner == nullptr, delete the projectile
|
||||
|
||||
pushad
|
||||
|
||||
// delete projectile CProjectileInfo::RemoveIfThisIsAProjectile
|
||||
push dwProjectileObject
|
||||
mov eax, 0x739A40
|
||||
|
Loading…
Reference in New Issue
Block a user