From 68aa8831b78dff581105d204fb608761d2fc9133 Mon Sep 17 00:00:00 2001 From: laemmerzahlkr91200 Date: Mon, 1 Dec 2025 12:40:30 +0100 Subject: [PATCH] a update --- src/main.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index d3fbae8..2e4fd6f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2,7 +2,7 @@ #include #include //enum game -//Ab Zeile 169 if game won +//Ab Zeile 114 if game won //Ab Zeile 148 checking match? void innitGame(int pairCount, @@ -113,8 +113,10 @@ int main() { GameState state = GameState::Idle; //legen wir fest, in welchem Zustand das Spiel startet // Klick-Erkennung - if (!gameWon && IsMouseButtonPressed(MOUSE_LEFT_BUTTON)) - { + if (!gameWon + && state != GameState::LockInput + && state != GameState::CheckingMatch + && IsMouseButtonPressed(MOUSE_LEFT_BUTTON)) //Neu Counter counter++;