aboutsummaryrefslogtreecommitdiff
path: root/game/player/PlayerScript.cpp
diff options
context:
space:
mode:
authorJaro <59013720+JaroWMR@users.noreply.github.com>2025-01-08 09:31:14 +0100
committerGitHub <noreply@github.com>2025-01-08 09:31:14 +0100
commite75ca1c947f3cde19bebf15049732bc069c6e913 (patch)
treecdaa7a2c06ffc7f41366d4106e16f254e3b9cdc5 /game/player/PlayerScript.cpp
parentf31bd86ae5d7df21b788a273d4f2e530136ec184 (diff)
parent0d087f23affbdf5bcfb238bc9b9d3fc05b314c44 (diff)
Merge pull request #101 from lonkaars/jaro/main-menu
Jaro/main menu
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;