aboutsummaryrefslogtreecommitdiff
path: root/game/player/PlayerScript.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/PlayerScript.cpp
parentd9c67da9b8c2d8d25ef4dd2c700ddc78573d3a60 (diff)
parent0b9574bdd6c5968c07bcf165d66032b75649b5da (diff)
merge w/ master
Diffstat (limited to 'game/player/PlayerScript.cpp')
-rw-r--r--game/player/PlayerScript.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/game/player/PlayerScript.cpp b/game/player/PlayerScript.cpp
index 4404bd8..d45a519 100644
--- a/game/player/PlayerScript.cpp
+++ b/game/player/PlayerScript.cpp
@@ -41,7 +41,7 @@ bool PlayerScript::on_collision(const CollisionEvent & ev) {
AudioSource & audio = this->get_components_by_name<AudioSource>("player").at(0);
audio.play();
- return true;
+ return false;
} else if (ev.info.other.metadata.tag == "laser") {
for (Animator & anim : animators) {
anim.active = true;
@@ -58,7 +58,7 @@ bool PlayerScript::on_collision(const CollisionEvent & ev) {
AudioSource & audio = this->get_components_by_name<AudioSource>("player").at(1);
audio.play();
- return true;
+ return false;
} else if (ev.info.other.metadata.tag == "missile") {
for (Animator & anim : animators) {
anim.active = true;
@@ -75,7 +75,7 @@ bool PlayerScript::on_collision(const CollisionEvent & ev) {
AudioSource & audio = this->get_components_by_name<AudioSource>("player").at(2);
audio.play();
- return true;
+ return false;
}
return false;