diff options
author | Max-001 <80035972+Max-001@users.noreply.github.com> | 2025-01-10 17:35:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-10 17:35:30 +0100 |
commit | 20f6f8ddf013e5d18770bd0a01474a845843bdd7 (patch) | |
tree | 9461916069712418f870a4fce677d407d959b8e4 /game/player/PlayerEndScript.cpp | |
parent | 4d4e46551fff8aee9919bdcc550cc4f6090ee218 (diff) | |
parent | 90a33d36c34b1512270a6724564995dd8bf914a6 (diff) |
Merge pull request #129 from lonkaars/max/game2
Implemented Shop
Diffstat (limited to 'game/player/PlayerEndScript.cpp')
-rw-r--r-- | game/player/PlayerEndScript.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/game/player/PlayerEndScript.cpp b/game/player/PlayerEndScript.cpp index 4ae813f..62fd350 100644 --- a/game/player/PlayerEndScript.cpp +++ b/game/player/PlayerEndScript.cpp @@ -92,8 +92,9 @@ bool PlayerEndScript::on_collision(const crepe::CollisionEvent & ev) { jump++; } - if (rb_player.data.linear_velocity.x < 5 && jump >= 3) { + if (rb_player.data.linear_velocity.x < 5 && jump == 3) { this->trigger_event<EndGameEvent>(); + jump++; } return false; |