diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2025-01-07 14:06:45 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2025-01-07 14:06:45 +0100 |
commit | 41f890863706ee8ede43021fe83b776b638a18b7 (patch) | |
tree | 4ee74df7e60c8c22c61a1748dd648dda2783b21f /game/coins/CoinScript.cpp | |
parent | bc66e7195c80facca244f933b882011e5e81fa3c (diff) |
fixed coins and improved coin
Diffstat (limited to 'game/coins/CoinScript.cpp')
-rw-r--r-- | game/coins/CoinScript.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/game/coins/CoinScript.cpp b/game/coins/CoinScript.cpp index 5960446..a3ee3b9 100644 --- a/game/coins/CoinScript.cpp +++ b/game/coins/CoinScript.cpp @@ -10,11 +10,11 @@ using namespace crepe; using namespace std; bool CoinScript::on_collision(const CollisionEvent & collisionData){ - if(collisionData.info.other.metadata.tag != "coin") return true; + if(collisionData.info.other.metadata.tag != "coin") return false; this->get_components_by_name<Sprite>(collisionData.info.other.metadata.name).front().get().active = false; this->get_components_by_name<CircleCollider>(collisionData.info.other.metadata.name).front().get().active = false; this->amount++; - return true; + return false; } void CoinScript::init(){ |