diff options
author | Max-001 <maxsmits21@kpnmail.nl> | 2025-01-08 09:52:00 +0100 |
---|---|---|
committer | Max-001 <maxsmits21@kpnmail.nl> | 2025-01-08 09:52:00 +0100 |
commit | b1824253875901b4fb6f4c5fee72aea6d807d370 (patch) | |
tree | 8acc156e68d48022f453dcf06b541f77a5803484 /game/player/PlayerScript.cpp | |
parent | e9082de7d114ce024a884cac38c545c99de4026a (diff) | |
parent | e75ca1c947f3cde19bebf15049732bc069c6e913 (diff) |
Merge remote-tracking branch 'origin/master' into max/game2
Diffstat (limited to 'game/player/PlayerScript.cpp')
-rw-r--r-- | game/player/PlayerScript.cpp | 6 |
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; |