diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2025-01-08 15:44:51 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2025-01-08 15:44:51 +0100 |
commit | 94e2988cc8c42e83a4b7b858c48458f997130963 (patch) | |
tree | 633abef48dc65e170b2c184ec68beb4154fcdb2a /game/player | |
parent | 12cf43dd062f41af226e0ac038b2f2838391015f (diff) | |
parent | 26fe39ef4e633206a9b202d431c969c66052d2ef (diff) |
merge w/ master
Diffstat (limited to 'game/player')
-rw-r--r-- | game/player/PlayerEndScript.cpp | 2 |
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>(); } |