Skip to content

Commit

Permalink
Fixed collision check.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Mia75owo authored and drfiemost committed Sep 3, 2024
1 parent f3d025f commit 5ac76b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Hurrican/src/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5ac76b8

Please sign in to comment.