From 3a021f72a29cfbfce07a22ed2ad2deb154d88ff7 Mon Sep 17 00:00:00 2001 From: laemmerzahlkr91200 Date: Mon, 15 Dec 2025 12:29:09 +0100 Subject: [PATCH] counter fix (again) --- src/main.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 98f6afd..8c4f8f1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -135,6 +135,7 @@ int main() std::cout<<("State missing"); if (!c.IsFlipped() && !c.IsMatched()) //<--------------- Zustandwechsel anpassen { + Vector2 screenPos = GetWorldToScreen( {c.GetPosition().x, c.GetPosition().y, c.GetPosition().z}, camera); @@ -143,16 +144,16 @@ int main() { c.FlipForward(); //<-----Animation Start - + counter++; if (state == GameState::Idle) //neu Ü4 { state = GameState::OneFlipped; - counter++; + } else if (state == GameState::OneFlipped && first && &c != first) { state = GameState::LockInput; - counter++; + } break; // 🔒 nur EIN Würfel pro Klick