From 560cc4a762b5f60d79587c28114c9247e447b2c0 Mon Sep 17 00:00:00 2001 From: laemmerzahlkr91200 Date: Mon, 15 Dec 2025 12:17:18 +0100 Subject: [PATCH] Counter fix and Logik-Deadlock Fix --- src/main.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 80b8a77..98f6afd 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -142,16 +142,22 @@ int main() fabs(mouse.y - screenPos.y) < 40) { c.FlipForward(); //<-----Animation Start - //Neu Counter - counter++; - if (state == GameState::Idle) //Neu (Ü4) + + if (state == GameState::Idle) //neu Ü4 + { state = GameState::OneFlipped; - else + counter++; + } + else if (state == GameState::OneFlipped && first && &c != first) + { state = GameState::LockInput; + counter++; + } break; // 🔒 nur EIN Würfel pro Klick } + } } }