diff options
author | JAROWMR <jarorutjes07@gmail.com> | 2025-01-08 14:40:45 +0100 |
---|---|---|
committer | JAROWMR <jarorutjes07@gmail.com> | 2025-01-08 14:40:45 +0100 |
commit | e634f23fda2cea14aaa1b70b1e5e463eee9665a7 (patch) | |
tree | 4e71073df8d5e3e898c3c0e23c1cc8002375135f /game/coins/CoinSystemScript.cpp | |
parent | 3b6081d03300d353434fd4f6e91237fc8f1a4390 (diff) | |
parent | 91366375a7b2a9be670e4842604512254a9c116e (diff) |
Merge branch 'master' of github.com:lonkaars/crepe into jaro/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 |