diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2025-01-08 09:30:30 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2025-01-08 09:30:30 +0100 |
commit | 0d087f23affbdf5bcfb238bc9b9d3fc05b314c44 (patch) | |
tree | 534df7afa383091d73bdf938e7422dd616beaabd | |
parent | 2e854cc0af93f278261f05f8f0290d946e1ceb8a (diff) | |
parent | 2a4c956a552300813e6792925aeae40b5644eba2 (diff) |
Merge branch 'jaro/main-menu' of github.com:lonkaars/crepe into jaro/main-menu
-rw-r--r-- | game/coins/CoinScript.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/game/coins/CoinScript.cpp b/game/coins/CoinScript.cpp index 54ef760..90150b6 100644 --- a/game/coins/CoinScript.cpp +++ b/game/coins/CoinScript.cpp @@ -13,7 +13,11 @@ using namespace std; bool CoinScript::on_collision(const CollisionEvent & collisionData) { if (collisionData.info.other.metadata.tag != "coin") return false; - if(!this->get_components_by_name<Sprite>(collisionData.info.other.metadata.name).front().get().active) return false; + if (!this->get_components_by_name<Sprite>(collisionData.info.other.metadata.name) + .front() + .get() + .active) + return false; this->get_components_by_name<Sprite>(collisionData.info.other.metadata.name) .front() .get() |