diff --git a/MineSweeper/MineSweeper.aps b/MineSweeper/MineSweeper.aps index 4c68c04..77d1f3c 100644 Binary files a/MineSweeper/MineSweeper.aps and b/MineSweeper/MineSweeper.aps differ diff --git a/MineSweeper/MineSweeper.cpp b/MineSweeper/MineSweeper.cpp index e83fb59..fe1e41f 100644 --- a/MineSweeper/MineSweeper.cpp +++ b/MineSweeper/MineSweeper.cpp @@ -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) { @@ -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); diff --git a/MineSweeper/MineSweeper.rc b/MineSweeper/MineSweeper.rc index 54bfcf3..57a5680 100644 Binary files a/MineSweeper/MineSweeper.rc and b/MineSweeper/MineSweeper.rc differ