From 5ac76b8ed17a1cc6de46539039e17e3a73b8f1bd Mon Sep 17 00:00:00 2001 From: Mia Date: Tue, 3 Sep 2024 15:33:32 +0200 Subject: [PATCH] Fixed collision check. This check was a typo. (br | BLOCKWERT_WAND) is always true because BLOCKWERT_WAND == 1. You can see in line 1079, how it was supposed to be, for checking in the left direction. --- Hurrican/src/Player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Hurrican/src/Player.cpp b/Hurrican/src/Player.cpp index ada532f7..21aa384e 100644 --- a/Hurrican/src/Player.cpp +++ b/Hurrican/src/Player.cpp @@ -1126,7 +1126,7 @@ void PlayerClass::AnimatePlayer() { } else if (Handlung == PlayerActionEnum::BEAMLADEN) // Rundum bewegen und den Beam aufladen ? { BlitzWinkel += Timer.sync(20.0f); - } else if (br | BLOCKWERT_WAND) // Keine Wand im Weg ? + } else if (!(br & BLOCKWERT_WAND)) // Keine Wand im Weg ? { Blickrichtung = DirectionEnum::RECHTS; // nach rechts kucken if (Handlung == PlayerActionEnum::STEHEN) // Aus dem Stehen heraus