aboutsummaryrefslogtreecommitdiff
path: root/game/player
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2025-01-08 15:33:41 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2025-01-08 15:33:41 +0100
commitce83df284173cfb4f6e430bf3ed8080ea21204d7 (patch)
treecb30e6bd44b4cf61ee696b55b46f7b817bf4157a /game/player
parent698628cf1fb1b8a1f68bf6a5672d984bd64be58f (diff)
parent26fe39ef4e633206a9b202d431c969c66052d2ef (diff)
Merge branch 'master' into niels/game
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>();
}