aboutsummaryrefslogtreecommitdiff
path: root/game
diff options
context:
space:
mode:
authorMax-001 <maxsmits21@kpnmail.nl>2025-01-08 15:26:54 +0100
committerMax-001 <maxsmits21@kpnmail.nl>2025-01-08 15:26:54 +0100
commite732abef5d0170cacf290de12a402dbd19f31a87 (patch)
treed966a39f23ac053c6cc5cee678d55c28f795704f /game
parent17b381e96b5a015dd4612d09ca000fb61d46bce7 (diff)
Fixed end window
Diffstat (limited to 'game')
-rw-r--r--game/player/PlayerEndScript.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/game/player/PlayerEndScript.cpp b/game/player/PlayerEndScript.cpp
index fb18f2f..047dbb0 100644
--- a/game/player/PlayerEndScript.cpp
+++ b/game/player/PlayerEndScript.cpp
@@ -90,7 +90,7 @@ bool PlayerEndScript::on_collision(const crepe::CollisionEvent & ev) {
jump++;
}
- if (rb_player.data.linear_velocity.x < 5) {
+ if (rb_player.data.linear_velocity.x < 5 && jump >= 3) {
this->trigger_event<EndGameEvent>();
}