aboutsummaryrefslogtreecommitdiff
path: root/game/coins/CoinSystemScript.cpp
diff options
context:
space:
mode:
authorJaro <59013720+JaroWMR@users.noreply.github.com>2025-01-08 14:40:13 +0100
committerGitHub <noreply@github.com>2025-01-08 14:40:13 +0100
commit91366375a7b2a9be670e4842604512254a9c116e (patch)
tree537c2cfa54f338734c91e74f6db078dddd578a96 /game/coins/CoinSystemScript.cpp
parentc9c9702edc58ff8f40b13dc6b86b216421f79e9b (diff)
parenta24d1563931a19332ff2935f8d5998c997a4f94e (diff)
Merge pull request #112 from lonkaars/max/game2
Max/game2
Diffstat (limited to 'game/coins/CoinSystemScript.cpp')
-rw-r--r--game/coins/CoinSystemScript.cpp4
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