1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

remove conditions

This commit is contained in:
FunkyFr3sh 2024-05-31 01:49:43 +02:00
parent 66de7d5d1e
commit 0e9e3f9d7a

View File

@ -676,8 +676,7 @@ BOOL WINAPI fake_GetMessageA(LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wM
if (result && lpMsg && g_ddraw.ref && g_ddraw.hwnd && g_ddraw.width)
{
if ((g_mouse_locked || g_config.devmode || g_ddraw.bnet_active) &&
(!g_config.windowed || real_ScreenToClient(g_ddraw.hwnd, &lpMsg->pt)))
if (!g_config.windowed || real_ScreenToClient(g_ddraw.hwnd, &lpMsg->pt))
{
int x = max(lpMsg->pt.x - g_ddraw.mouse.x_adjust, 0);
int y = max(lpMsg->pt.y - g_ddraw.mouse.y_adjust, 0);
@ -715,8 +714,7 @@ BOOL WINAPI fake_PeekMessageA(LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT w
if (result && lpMsg && g_ddraw.ref && g_ddraw.hwnd && g_ddraw.width)
{
if ((g_mouse_locked || g_config.devmode || g_ddraw.bnet_active) &&
(!g_config.windowed || real_ScreenToClient(g_ddraw.hwnd, &lpMsg->pt)))
if (!g_config.windowed || real_ScreenToClient(g_ddraw.hwnd, &lpMsg->pt))
{
int x = max(lpMsg->pt.x - g_ddraw.mouse.x_adjust, 0);
int y = max(lpMsg->pt.y - g_ddraw.mouse.y_adjust, 0);