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++;