diff options
author | Max-001 <maxsmits21@kpnmail.nl> | 2025-01-08 09:11:34 +0100 |
---|---|---|
committer | Max-001 <maxsmits21@kpnmail.nl> | 2025-01-08 09:11:34 +0100 |
commit | 2a4c956a552300813e6792925aeae40b5644eba2 (patch) | |
tree | 34b53f381204c64bcb945881f66e454a664722bd /game | |
parent | c01074a0cfdca0be4a6890d252b1b9aef87d597e (diff) |
Make format
Diffstat (limited to 'game')
-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() |