aboutsummaryrefslogtreecommitdiff
path: root/game/player
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2025-01-08 15:44:51 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2025-01-08 15:44:51 +0100
commit94e2988cc8c42e83a4b7b858c48458f997130963 (patch)
tree633abef48dc65e170b2c184ec68beb4154fcdb2a /game/player
parent12cf43dd062f41af226e0ac038b2f2838391015f (diff)
parent26fe39ef4e633206a9b202d431c969c66052d2ef (diff)
merge w/ master
Diffstat (limited to 'game/player')
-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>();
}