From e732abef5d0170cacf290de12a402dbd19f31a87 Mon Sep 17 00:00:00 2001 From: Max-001 Date: Wed, 8 Jan 2025 15:26:54 +0100 Subject: Fixed end window --- game/player/PlayerEndScript.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'game/player') 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(); } -- cgit v1.2.3