From c01074a0cfdca0be4a6890d252b1b9aef87d597e Mon Sep 17 00:00:00 2001 From: JAROWMR Date: Wed, 8 Jan 2025 09:08:40 +0100 Subject: coin fix --- game/coins/CoinScript.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'game/coins') diff --git a/game/coins/CoinScript.cpp b/game/coins/CoinScript.cpp index 3a2b5b0..54ef760 100644 --- a/game/coins/CoinScript.cpp +++ b/game/coins/CoinScript.cpp @@ -13,6 +13,7 @@ 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(collisionData.info.other.metadata.name).front().get().active) return false; this->get_components_by_name(collisionData.info.other.metadata.name) .front() .get() -- cgit v1.2.3