Skip to content

Commit

Permalink
3.1 to fix some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
TcMcKrLiTb committed Dec 3, 2022
1 parent 82d9b04 commit 1bc119d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
Binary file modified MineSweeper/MineSweeper.aps
Binary file not shown.
8 changes: 8 additions & 0 deletions MineSweeper/MineSweeper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
x = GET_Y_LPARAM(lParam);
}
Lclick(x, y, hWnd);
if (x > 40 && GetGame(4) == 2)
{
break;
}
InvalidateRect(hWnd, NULL, TRUE);
if (GetGame(4) == 2)
{
Expand All @@ -183,6 +187,10 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
y = LOWORD(lParam);
x = HIWORD(lParam);
}
if (x > 40 && GetGame(4) == 2)
{
break;
}
Rclick(x, y, hWnd);
MapPainting(hWnd);
InvalidateRect(hWnd, NULL, TRUE);
Expand Down
Binary file modified MineSweeper/MineSweeper.rc
Binary file not shown.

0 comments on commit 1bc119d

Please sign in to comment.