aboutsummaryrefslogtreecommitdiff
path: root/game/coins/CoinPool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'game/coins/CoinPool.cpp')
-rw-r--r--game/coins/CoinPool.cpp5
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);
+ }
}