aboutsummaryrefslogtreecommitdiff
path: root/game/player/PlayerEndScript.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2025-01-08 15:03:14 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2025-01-08 15:03:14 +0100
commit261a2cfd2bedafbc7fcf54e1b86adee206dea519 (patch)
treef099bca292e99ae54035f9a5ac7a455eec073c3e /game/player/PlayerEndScript.cpp
parentd9c67da9b8c2d8d25ef4dd2c700ddc78573d3a60 (diff)
parent0b9574bdd6c5968c07bcf165d66032b75649b5da (diff)
merge w/ master
Diffstat (limited to 'game/player/PlayerEndScript.cpp')
-rw-r--r--game/player/PlayerEndScript.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/game/player/PlayerEndScript.cpp b/game/player/PlayerEndScript.cpp
index 1554c84..fb18f2f 100644
--- a/game/player/PlayerEndScript.cpp
+++ b/game/player/PlayerEndScript.cpp
@@ -90,11 +90,11 @@ 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) {
this->trigger_event<EndGameEvent>();
}
- return true;
+ return false;
}
return false;