diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2025-01-08 14:52:06 +0100 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2025-01-08 14:52:06 +0100 |
commit | fbd7c84e13381922bf327e20c1abc65337142445 (patch) | |
tree | f48bcf5527b9df45cdbc2ba4ab2dab4ab8ea921c /game/coins/CoinSystemScript.cpp | |
parent | d989c1c51bf4d4fbb301493e73bc77e1873143b2 (diff) | |
parent | 91366375a7b2a9be670e4842604512254a9c116e (diff) |
Merge branch 'master' into niels/game
Diffstat (limited to 'game/coins/CoinSystemScript.cpp')
-rw-r--r-- | game/coins/CoinSystemScript.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/game/coins/CoinSystemScript.cpp b/game/coins/CoinSystemScript.cpp index 1634aa9..f9816c9 100644 --- a/game/coins/CoinSystemScript.cpp +++ b/game/coins/CoinSystemScript.cpp @@ -209,6 +209,10 @@ void CoinSystemScript::spawn_coins() { for (Sprite & coin_sprite : coin_sprites) { // Skip this sprite if it is already active if (coin_sprite.active) continue; + if (coin_sprite.data.order_in_layer == 1) { + coin_sprite.active = false; + continue; + } // Found an available (inactive) coin sprite // Retrieve its associated components |