diff options
author | Max-001 <80035972+Max-001@users.noreply.github.com> | 2025-01-10 18:51:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-10 18:51:37 +0100 |
commit | f3413f3d0fbffee0cc363096cd873a8be766ad64 (patch) | |
tree | aa033307a742df0c22131482858749bcf480ba38 /game/player/PlayerEndScript.cpp | |
parent | 7aa07561a52016007ff852acefa4db68260f0f1e (diff) | |
parent | 842ed3c20d923a84b5a267169b15c2170f97f099 (diff) |
Merge pull request #130 from lonkaars/max/game2
Max/game2
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; |