mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
Don't fake cursor position if mhack is disabled, clicking fixed
This commit is contained in:
parent
020168f725
commit
1cba0b66b2
11
main.c
11
main.c
@ -317,12 +317,15 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||||||
case WM_RBUTTONDOWN:
|
case WM_RBUTTONDOWN:
|
||||||
case WM_LBUTTONUP:
|
case WM_LBUTTONUP:
|
||||||
case WM_RBUTTONUP:
|
case WM_RBUTTONUP:
|
||||||
if(!ddraw->locked)
|
if(ddraw->mhack)
|
||||||
{
|
{
|
||||||
mouse_lock();
|
if(!ddraw->locked)
|
||||||
return 0;
|
{
|
||||||
|
mouse_lock();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
lParam = MAKELPARAM(ddraw->cursor.x, ddraw->cursor.y);
|
||||||
}
|
}
|
||||||
lParam = MAKELPARAM(ddraw->cursor.x, ddraw->cursor.y);
|
|
||||||
case 1139: /* this somehow triggers network activity in RA, investigate */
|
case 1139: /* this somehow triggers network activity in RA, investigate */
|
||||||
return ddraw->WndProc(hWnd, uMsg, wParam, lParam);
|
return ddraw->WndProc(hWnd, uMsg, wParam, lParam);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user