mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-12-22 22:47:29 +08:00
[saco] Implement/match DisableMousePositionUpdate()
This commit is contained in:
parent
7cc348d2c4
commit
bc7a9114a0
@ -13,6 +13,7 @@ BOOL ApplyPreGamePatches();
|
||||
void ApplyInGamePatches();
|
||||
void InitAnimNameHashes();
|
||||
|
||||
DWORD dwDummyActiveMouseState;
|
||||
char *szGameTextMessage;
|
||||
HWND hWindowHandle;
|
||||
|
||||
@ -179,6 +180,21 @@ void UpdatePads()
|
||||
_asm call edx
|
||||
}
|
||||
|
||||
void DisableMousePositionUpdate()
|
||||
{
|
||||
//*(DWORD*)0xB7340C = 0;
|
||||
//*(DWORD*)0xB73410 = 0;
|
||||
//*(DWORD*)0xB73414 = 0;
|
||||
memset((PVOID)0xB7340C,0,12);
|
||||
|
||||
UnFuck(0x53F47A,4);
|
||||
UnFuck(0x53F49A,4);
|
||||
UnFuck(0x53F4B3,4);
|
||||
*(DWORD*)0x53F47A = (DWORD)&dwDummyActiveMouseState;
|
||||
*(DWORD*)0x53F49A = (DWORD)&dwDummyActiveMouseState;
|
||||
*(DWORD*)0x53F4B3 = (DWORD)&dwDummyActiveMouseState;
|
||||
}
|
||||
|
||||
void CGame::InitGame()
|
||||
{
|
||||
// Create a buffer for game text.
|
||||
|
Loading…
Reference in New Issue
Block a user