diff options
Diffstat (limited to 'game/coins/CoinPool.cpp')
-rw-r--r-- | game/coins/CoinPool.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/game/coins/CoinPool.cpp b/game/coins/CoinPool.cpp index 59b987c..439b3b3 100644 --- a/game/coins/CoinPool.cpp +++ b/game/coins/CoinPool.cpp @@ -8,6 +8,9 @@ using namespace crepe; using namespace std; void CoinPool::create_coins(crepe::Scene & scn) { + int amount = 0; CoinSubScene coin; - while(coin.create(scn) < this->MAXIMUM_AMOUNT); + while(amount < this->MAXIMUM_AMOUNT){ + amount = coin.create(scn,amount); + } } |